Skip to main content
typesafe - formal type asserting decorators

Usage:
from typesafe import *

@types_hard( name=str, age=(int,float))
def func_or_method(name, age):
pass

@types_hard(dict( name=str, age=(int,float) ))
def func_or_method(name, age):
pass

The @types_hard() decorator raises HardTypesException unless
calling arguments are of the specified type or types:
@types_hard(argname=type, [...])
@types_hard(argname=types, [...])

The @types_soft() decorator raises SoftTypesException unless
calling argument types match, or are subtypes, of the specified
type or types.
@types_soft(argname=type, [...])
@types_soft(argname=types, [...])

Metadata

Release files for typesafe 0.9.1

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

Source distribution (sdist)

Source distribution for typesafe 0.9.1
File Size Uploaded Provenance Actions
typesafe-0.9.1.tar.gz 2.6 kB Without provenance Details for typesafe-0.9.1.tar.gz

Release files / typesafe-0.9.1.tar.gz

Download URL typesafe-0.9.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b3619f454f05b1628c1830660d19b7e2fdc5ec9475265f67171bade3e63e91ee
BLAKE2b-256 checksum
How to use checksums
775183dd5b0163f735c53c598d72bbee8843d1f67c1256f0ac230f68f3db9c26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for typesafe 0.9.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.9.1 This release

1 release file No provenance

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