A simple Python project for enforcing runtime validation of function input and output data type.
Project description
Enforce is a simple Python 3.5 or higher application for enforcing a runtime type checking based on type hints.
Installation:
pip install enforce
Usage Examples:
import enforce
@enforce.runtime_validation
def foo(text: str) -> None:
print(text)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
enforce-0.1.0.zip
(4.3 kB
view hashes)