skip to navigation
skip to content

typingplus 2.2.1

An enhanced typing library with casting and validation.

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.

Installation

Install it using pip:

pip install typingplus

Features

  • 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.

Usage

See PEP 484.

 
File Type Py Version Uploaded on Size
typingplus-2.2.1-py2.py3-none-any.whl (md5) Python Wheel 3.6 2018-01-11 9KB
typingplus-2.2.1.tar.gz (md5) Source 2018-01-11 10KB