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.

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.

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file typingplus-2.2.3.tar.gz.

File metadata

  • Download URL: typingplus-2.2.3.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for typingplus-2.2.3.tar.gz
Algorithm Hash digest
SHA256 f51fda560567f816ba9cdeea75f0b05edd2c26038a098f0f26420c1ad72db0c8
MD5 5c6a348f1d6f20fc8bd1a855d5a067a0
BLAKE2b-256 dcb950f72b7290fd7bdf18711f2a4669c1ec9af07fd326d7556cdf2ce11b1ec1

See more details on using hashes here.

File details

Details for the file typingplus-2.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: typingplus-2.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for typingplus-2.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e676181ca65d1d9749a0bd73605a8f4f1c8a52782a449dc211147eadab60c196
MD5 985de6a8dd5537e28adb352cfe1e7e0f
BLAKE2b-256 b0201f72dd6407cd3038d67cb27494398d9ece2c0e7bbccd9b009acebd6247c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page