Annotation Validation ensures type checking for function annotations.
Project description
Annotation Validation
Annotation Validation ensures type checking for function annotations.
Free software: MIT license
Documentation: https://annotation-validation.readthedocs.io.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for annotation_validation-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8003630b978ff42943fc859e1a578e24291b4a5ffc93ad12111aecf734038fd6 |
|
MD5 | 8cfc93857c91707092b45df277a814f1 |
|
BLAKE2b-256 | 2855ce694f71480194b6c63eafa1b29f8de9c833612ee7f41dc52c7d2051cc68 |
Hashes for annotation_validation-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e746c22aea3a469af934310b44c635a0d6d990ee58cc2cbb17b4b592052512 |
|
MD5 | 0b5a33dddb3f005a5ba7572d8dd07329 |
|
BLAKE2b-256 | 7ae6c215e7a53701ff2d9e4470aa40fb981853fef0ff0539571b88d5af4ee0a4 |