Skip to main content

Type Hints for Python

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.3.tar.gz (78.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2

File details

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

File metadata

  • Download URL: typing-3.7.4.3.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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.4

File hashes

Hashes for typing-3.7.4.3.tar.gz
Algorithm Hash digest
SHA256 1187fb9c82fd670d10aa07bbb6cfcfe4bdda42d6fab8d5134f04e8c4d0b71cc9
MD5 276296e7b6b617d4f8b5e8874f240bd4
BLAKE2b-256 05d96eebe19d46bd05360c9a9aae822e67a80f9242aabbfc58b641b957546607

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: typing-3.7.4.3-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/47.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.4

File hashes

Hashes for typing-3.7.4.3-py2-none-any.whl
Algorithm Hash digest
SHA256 283d868f5071ab9ad873e5e52268d611e851c870a2ba354193026f2dfb29d8b5
MD5 2ce2cbdf7cc30a0ae13c2e61bb473e61
BLAKE2b-256 3bc0e44213fcb799eac02881e2485724ba5b0914600bc9df6ed922e364fdc059

See more details on using hashes here.

Provenance

Supported by

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