typing - Support for type hints - Python 3.10.5 documentation
Source code: Lib/typing.py Note The Python runtime does not enforce function and variable type annotations. They can be used by third party tools such as type checkers, IDEs, linters, etc. This module provides runtime support for type hints. The most fundamental support consists of the types , , , , and .
https://docs.python.org/3/library/typing.html#typing.Protocol