Provide the ability to validate input/output values base on type hints. It's possible to use inspect.signature, typing.get_origin(), typing.get_args(), etc for retrieving information about type hints.
We'll need to create decorator, which analyzes type hints, generates the set of rules base in the hints and validates input/output data agaisnt these rules.
Provide the ability to validate input/output values base on type hints. It's possible to use
inspect.signature,typing.get_origin(),typing.get_args(), etc for retrieving information about type hints.We'll need to create decorator, which analyzes type hints, generates the set of rules base in the hints and validates input/output data agaisnt these rules.