runtype is composed of several utility modules: 1. dispatch - Provides a decorator for fast multi-dispatch at run-time for functions, with sophisticated ambiguity resolution. 2. 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. 3. 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]`.
4 days, 3 hours ago passed
.. image:: https://readthedocs.org/projects/runtype/badge/?version=latest :target: https://runtype.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
<a href='https://runtype.readthedocs.io/en/latest/?badge=latest'> <img src='https://readthedocs.org/projects/runtype/badge/?version=latest' alt='Documentation Status' /> </a>