annotation-validation

Annotation Validation ensures type checking for function annotations.


Keywords
annotation_validation
License
MIT
Install
pip install annotation-validation==0.1.1

Documentation

Annotation Validation

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.