Type Hints for Python


Keywords
typing, function, annotations, type, hints, hinting, checking, checker, typehints, typehinting, typechecking, backport, gradual-typing, python, static-typing, types
License
Python-2.0
Install
pip install typing==3.10.0.0

Documentation

Chat at https://gitter.im/python/typing

Static Typing for Python

Documentation and Support

The documentation for Python's static typing can be found at typing.readthedocs.io. You can get help either in our support forum or chat with us on Gitter.

Improvements to the type system should be discussed on the typing-sig mailing list, although the issues in this repository contain some historic discussions.

Repository Content

This GitHub repository is used for several things:

Historically, this repository also hosted:

  • The typing_extensions package, which now lives in the typing_extensions repo. It used to be in the typing_extensions directory.

  • A backport of the typing module for older Python versions. It was removed after all Python versions that lack typing in the standard library reached end of life. The last released version, supporting Python 2.7 and 3.4, is available at PyPI.