Welcome to Runtype’s documentation!
Runtype is a collection of run-time type utilities for Python.
It contains the following user-facing modules:
Validation (isa & issubclass) - Alternatives to ‘isinstance’ and ‘issubclass’
Dataclass - Type-validation in dataclasses
Dispatch - Multiple dispatch
Type Classes - Utilities for creating type systems
Install
pip install runtype
No dependencies.
Requires Python 3.6 or up.
ArchLinux
ArchLinux users can install the package by running:
yay -S python-runtype