Function overloading¶| mypy.readthedocs.io
Source code: Lib/_collections_abc.py 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 whet...| Python documentation
Source code: Lib/typing.py This module provides runtime support for type hints. Consider the function below: The function surface_area_of_cube takes an argument expected to be an instance of float,...| Python documentation
Source code: Lib/dataclasses.py This module provides a decorator and functions for automatically adding generated special methods such as__init__() and__repr__() to user-defined classes. It was ori...| Python documentation
Protocols and structural subtyping¶| mypy.readthedocs.io
Value objects are compared using only the values of their properties, having no conceptual identity| martinfowler.com