Type dispatch and validation for run-time
runtype is composed of several utility modules:
- dispatch - Provides a decorator for fast multi-dispatch at run-time for functions, with sophisticated ambiguity resolution.
- dataclass - Improves on Python’s existing dataclass, by verifying the type-correctness of its attributes at run-time. Also provides a few useful methods for dataclasses.
- isa - Provides alternative functions to isinstance and issubclass, that undestand Python’s typing module.
Runtype’s integration with the typing module allows to use type signatures such as List[int], Optional[str], or Union[int, str, Callable].
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size runtype-0.1.tar.gz (6.5 kB)||File type Source||Python version None||Upload date||Hashes View hashes|