Skip to main content

Type Hints for Python

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Typing – Type Hints for Python

This is a backport of the standard library typing module to Python versions older than 3.5. (See note below for newer versions.)

Typing defines a standard notation for Python function and variable type annotations. The notation can be used for documenting code in a concise, standard format, and it has been designed to also be used by static and runtime type checkers, static analyzers, IDEs and other tools.

NOTE: in Python 3.5 and later, the typing module lives in the stdlib, and installing this package has NO EFFECT, because stdlib takes higher precedence than the installation directory. To get a newer version of the typing module in Python 3.5 or later, you have to upgrade to a newer Python (bugfix) version. For example, typing in Python 3.6.0 is missing the definition of ‘Type’ – upgrading to 3.6.2 will fix this.

Also note that most improvements to the typing module in Python 3.7 will not be included in this package, since Python 3.7 has some built-in support that is not present in older versions (See PEP 560.)

For package maintainers, it is preferred to use typing;python_version<"3.5" if your package requires it to support earlier Python versions. This will avoid shadowing the stdlib typing module when your package is installed via pip install -t . on Python 3.5 or later.

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

typing-3.7.4.2.tar.gz (78.6 kB view details)

Uploaded Source

Built Distribution

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

typing-3.7.4.2-py2-none-any.whl (26.5 kB view details)

Uploaded Python 2

File details

Details for the file typing-3.7.4.2.tar.gz.

File metadata

  • Download URL: typing-3.7.4.2.tar.gz
  • Upload date:
  • Size: 78.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.3rc1

File hashes

Hashes for typing-3.7.4.2.tar.gz
Algorithm Hash digest
SHA256 6f6f3553709d2234e412092e5daa93aaaaa42ea1854505442280b39f9311707f
MD5 131c6bb261c528e2b3b3c3ad2818ea73
BLAKE2b-256 8f00c999df515e923dbb73281426f5032a3d12b68600e362af30ed2c495d1e79

See more details on using hashes here.

File details

Details for the file typing-3.7.4.2-py2-none-any.whl.

File metadata

  • Download URL: typing-3.7.4.2-py2-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.3rc1

File hashes

Hashes for typing-3.7.4.2-py2-none-any.whl
Algorithm Hash digest
SHA256 e470592ab1725d6810cd91d687c857a853d136d9a9dc9289713fa887f39b931a
MD5 2a0e9afc50427f4b6757f087eeaf294f
BLAKE2b-256 b49b77378132345477f06ab5ffc2428e24f23ecc87769c3404e83206c72697c6

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