Skip to main content

Annotation Validation ensures type checking for function annotations.

Project description

Annotation Validation

https://img.shields.io/pypi/v/annotation_validation.svg https://img.shields.io/travis/szuckerman/annotation_validation.svg Documentation Status Updates

Annotation Validation ensures type checking for function annotations.

Features

  • Validates input to match data types of annotations of function arguments

  • Validates output to match data type of annotation of return argument

  • Used as a decorator!

Possible Improvements

  • Validation of ranges of input

  • Throw warnings instead of errors

  • Logging

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Inspiration is from this blog post.

History

0.1.1 (2019-02-05)

  • Adding caching to getfullargspec and get_type_hints.

0.1.0 (2019-02-04)

  • First release on PyPI.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page