Skip to main content

An enhanced typing library with casting and validation.

Project description

PyPI Python Versions Build Status Coverage Status Code Quality

An enhanced version of the Python typing library that always uses the latest version of typing available, regardless of which version of Python is in use.


Install it using pip:

pip install typingplus


  • Contains all of the typing library, and is guaranteed to use the latest installed version of the typing library, even if the version of Python in use has an older version of typing.

  • typing_extensions is integrated to be as compatible with the future of the typing module as possible.

  • Support for comment type hints.

  • A functional cast function, including to the abstract types defined in the typing module.

  • An is_instance function that works with the abstract types defined in the typing module.

  • An upgrade_typing function that will replace the stdlib version of typing with the latest version from either the stdlib or the backport.


See PEP 484.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typingplus-2.2.3.tar.gz (11.5 kB view hashes)

Uploaded source

Built Distribution

typingplus-2.2.3-py2.py3-none-any.whl (8.0 kB view hashes)

Uploaded 3 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page