Skip to main content

A runtime type-checking module for Python supporting both parameter-type checking and return-type checking for functions, methods and generators.

The main workhorses of this module, the functions accepts and returns, are used as function/method decorators. A yields decorator provides a mechanism to typecheck the values yielded by generators.

Four utility classes, IsAllOf(), IsOneOf(), IsNoneOf() and IsOnlyOneOf() are provided to assist in building more complex signatures by creating boolean expressions based on classes and/or types.

A number of other utility classes exist to aid in type signature creation; for a full list, see the README.txt file or the project’s website.

The module also includes support for type variables, a concept borrowed from languages such as Haskell.

Metadata

Release files for typecheck 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typecheck 0.3.5
File Size Uploaded Provenance
typecheck-0.3.5.tar.gz 44.6 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for typecheck 0.3.5
File Interpreter ABI Platform
typecheck-0.3.5-py2.5.egg Legacy Egg format - - Details
typecheck-0.3.5-py2.4.egg Legacy Egg format - - Details

Total release size: 118.1 kB

Release files / typecheck-0.3.5.tar.gz

Download URL typecheck-0.3.5.tar.gz
Size 44.6 kB
Tags Source
SHA-256 checksum
How to use checksums
065fdad53f28fe0145c4f6cce06d25fe243395ed3e37c70aa3faa00c14a223f9
BLAKE2b-256 checksum
How to use checksums
dc2f6daef86a0dfec50dc3106c97e6b93b02d5e5904ed1eb85ee783fa305cb39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / typecheck-0.3.5-py2.5.egg

Download URL typecheck-0.3.5-py2.5.egg
Size 36.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
8a1d3f5cb2973cbe1488f229f8256939a2577bb539080f318f8c6cabae97a566
BLAKE2b-256 checksum
How to use checksums
b8279c335d5dbd5905c8f40be4509d76a4c2c055302e9c373b714c038de68e1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / typecheck-0.3.5-py2.4.egg

Download URL typecheck-0.3.5-py2.4.egg
Size 37.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
5f086a700b9a9cdd674e4bb75d0317bf46f58ad90eeabb793be361530b2fa465
BLAKE2b-256 checksum
How to use checksums
c3603874daec89e3982005e4ab0d98d252f29e83cf235419384b69735ff22911
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for typecheck 0.3.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page