This module provides abstract base classes that can be used to test whether a class provides a particular interface; for example, whether it is hashable or whether it is a mapping.
This module provides runtime support for type hints as specified by PEP 484, PEP 526, PEP 544, PEP 586, PEP 589, PEP 591, PEP 612 and PEP 613. The most fundamental support consists of the types Any, Union, Tuple, Callable, TypeVar, and Generic. For full specification please see PEP 484. For a simplified introduction to type hints see PEP 483.
import typing # preferred from typing import Dict, List, Union, Any myvar: Dict = {} # non-preferred import typing myvar: typing.
This module implements specialized container datatypes providing alternatives to Python’s general purpose built-in containers, dict, list, set, and tuple.
Method chaining built on generators
A plugin for flake8 integrating mypy.
Data validation using Python type hints
Optional static typing for Python
Runtime inspection utilities for typing module.