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

Uploaded Source

Built Distributions

typing-3.10.0.0-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

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

Uploaded Python 2

File details

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

File metadata

  • Download URL: typing-3.10.0.0.tar.gz
  • Upload date:
  • Size: 79.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for typing-3.10.0.0.tar.gz
Algorithm Hash digest
SHA256 13b4ad211f54ddbf93e5901a9967b1e07720c1d1b78d596ac6a439641aa1b130
MD5 d6dd450cfe0c8c6547eef09a0491775d
BLAKE2b-256 b01b835d4431805939d2996f8772aca1d2313a57e8860fec0e48e8e7dfe3a477

See more details on using hashes here.

Provenance

File details

Details for the file typing-3.10.0.0-py3-none-any.whl.

File metadata

  • Download URL: typing-3.10.0.0-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for typing-3.10.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12fbdfbe7d6cca1a42e485229afcb0b0c8259258cfb919b8a5e2a5c953742f89
MD5 cf38139027dc160e3ecd8e5ccf151da9
BLAKE2b-256 f25d865e17349564eb1772688d8afc5e3081a5964c640d64d1d2880ebaed002d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: typing-3.10.0.0-py2-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for typing-3.10.0.0-py2-none-any.whl
Algorithm Hash digest
SHA256 c7219ef20c5fbf413b4567092adfc46fa6203cb8454eda33c3fc1afe1398a308
MD5 d98360a1877c628b048fecc5da649413
BLAKE2b-256 0bcbda856e81731833b94da70a08712f658416266a5fb2a9d9e426c8061becef

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