Strong Typing
Decorator which checks at Runtime whether the function is called with the correct type of parameters.
And raises TypeMisMatch if the used parameters in a function call where invalid.
This is the release for Python-3.14 and above
- If you need a different version please checkout the release Tags 2.*.*
Performance boost with mypyc
- Since 3.13.6
mypycis used to compile the core logic code. - This results in a significant performance boost from around 5x faster, especially for large containers.
Async functions
Use the dedicated a_match_typing decorator for async def functions. It preserves the coroutine interface while
validating annotated arguments before the function runs.
from strongtyping.astrong_typing import a_match_typing
import asyncio
@a_match_typing
async def add(left: int, right: int) -> int:
return left + right
async def main() -> None:
result = await add(1, 2) # 3
await add(1, "2") # raises TypeMismatch
asyncio.run(main())
See the async type checking documentation for configuration options and further examples.
🤖 AI Agent Ready
This library includes Agent Skills for AI coding assistants (like Claude Code, Cursor, and
GitHub Copilot). These skills provide the AI with specialized knowledge on how to apply runtime type checking, handle
TypeMismatch exceptions, and follow best practices when using strongtyping in your codebase.
You can validate the skills by running:
pytest tests/test_skills.py
Docs are available on 'readthedocs'
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file strongtyping-3.14.5.tar.gz.
File metadata
- Download URL: strongtyping-3.14.5.tar.gz
- Upload date:
- Size: 51.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4fa460bbc51f3b359e675bf617e34073b0d0953529708fb57dd5ece814b59a9
|
|
| MD5 |
3cf5e3a2259a37d03c8037095313f684
|
|
| BLAKE2b-256 |
51542f6519ffcf90b41a1e22833b31834a655aa745cd22654ab22c7991a84c73
|
Provenance
The following attestation bundles were made for strongtyping-3.14.5.tar.gz:
Publisher:
python-publish.yml on FelixTheC/strongtyping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strongtyping-3.14.5.tar.gz -
Subject digest:
a4fa460bbc51f3b359e675bf617e34073b0d0953529708fb57dd5ece814b59a9 - Sigstore transparency entry: 2276577263
- Sigstore integration time:
-
Permalink:
FelixTheC/strongtyping@7aeeed0a376085ac602d5354126cc2e9e6042fff -
Branch / Tag:
refs/tags/v3.14.5 - Owner: https://github.com/FelixTheC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7aeeed0a376085ac602d5354126cc2e9e6042fff -
Trigger Event:
release
-
Statement type:
File details
Details for the file strongtyping-3.14.5-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: strongtyping-3.14.5-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 96.6 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd5d30afecb4c403725dd2d9771895223b4b8a9919bbc13b4f0c0878d82d56ab
|
|
| MD5 |
9325a4489e3471bb2074745de75456fa
|
|
| BLAKE2b-256 |
cd9a05e4cb20c4b4c2083602eca7adca6890ee997a06298dc3b3e6ca509cbc46
|
Provenance
The following attestation bundles were made for strongtyping-3.14.5-cp314-cp314-win_amd64.whl:
Publisher:
python-publish.yml on FelixTheC/strongtyping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strongtyping-3.14.5-cp314-cp314-win_amd64.whl -
Subject digest:
fd5d30afecb4c403725dd2d9771895223b4b8a9919bbc13b4f0c0878d82d56ab - Sigstore transparency entry: 2276577812
- Sigstore integration time:
-
Permalink:
FelixTheC/strongtyping@7aeeed0a376085ac602d5354126cc2e9e6042fff -
Branch / Tag:
refs/tags/v3.14.5 - Owner: https://github.com/FelixTheC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7aeeed0a376085ac602d5354126cc2e9e6042fff -
Trigger Event:
release
-
Statement type:
File details
Details for the file strongtyping-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: strongtyping-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 222.2 kB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5c7e3324e65551235a0c62663e70819370d5c894c8d6c008c634296a58e41f6
|
|
| MD5 |
9f30c03d1903301dd2f871b654fbc44f
|
|
| BLAKE2b-256 |
800ca133ea3981fc4a21b5d2269ae33e0fbe942b838a33fe62804ac16076bacf
|
Provenance
The following attestation bundles were made for strongtyping-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
python-publish.yml on FelixTheC/strongtyping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strongtyping-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
e5c7e3324e65551235a0c62663e70819370d5c894c8d6c008c634296a58e41f6 - Sigstore transparency entry: 2276577668
- Sigstore integration time:
-
Permalink:
FelixTheC/strongtyping@7aeeed0a376085ac602d5354126cc2e9e6042fff -
Branch / Tag:
refs/tags/v3.14.5 - Owner: https://github.com/FelixTheC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7aeeed0a376085ac602d5354126cc2e9e6042fff -
Trigger Event:
release
-
Statement type:
File details
Details for the file strongtyping-3.14.5-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: strongtyping-3.14.5-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 141.1 kB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bec56939b355fa7e21ed9b6da2b3e80c537aa65a951a9e87740152d47443f81e
|
|
| MD5 |
7377511d5ed33854df5c474653252eff
|
|
| BLAKE2b-256 |
bff443239cb2cea18c11da60a3961bf72a9d88ef2e5e69f481cead815c9956e7
|
Provenance
The following attestation bundles were made for strongtyping-3.14.5-cp314-cp314-macosx_11_0_arm64.whl:
Publisher:
python-publish.yml on FelixTheC/strongtyping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strongtyping-3.14.5-cp314-cp314-macosx_11_0_arm64.whl -
Subject digest:
bec56939b355fa7e21ed9b6da2b3e80c537aa65a951a9e87740152d47443f81e - Sigstore transparency entry: 2276577985
- Sigstore integration time:
-
Permalink:
FelixTheC/strongtyping@7aeeed0a376085ac602d5354126cc2e9e6042fff -
Branch / Tag:
refs/tags/v3.14.5 - Owner: https://github.com/FelixTheC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7aeeed0a376085ac602d5354126cc2e9e6042fff -
Trigger Event:
release
-
Statement type:
File details
Details for the file strongtyping-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl.
File metadata
- Download URL: strongtyping-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl
- Upload date:
- Size: 143.7 kB
- Tags: CPython 3.14, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01f8286e4c78bee2052563f4515382e08015febc67c779e235f058fbe52e5f4d
|
|
| MD5 |
f94e79b875be7dfefa097c58fe669437
|
|
| BLAKE2b-256 |
527d83a6f07b2fc8511ad578bb206667e46a7f6b156d26452e8dd4f842843ec7
|
Provenance
The following attestation bundles were made for strongtyping-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl:
Publisher:
python-publish.yml on FelixTheC/strongtyping
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strongtyping-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl -
Subject digest:
01f8286e4c78bee2052563f4515382e08015febc67c779e235f058fbe52e5f4d - Sigstore transparency entry: 2276577447
- Sigstore integration time:
-
Permalink:
FelixTheC/strongtyping@7aeeed0a376085ac602d5354126cc2e9e6042fff -
Branch / Tag:
refs/tags/v3.14.5 - Owner: https://github.com/FelixTheC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7aeeed0a376085ac602d5354126cc2e9e6042fff -
Trigger Event:
release
-
Statement type: