strongtyping
Decorator which checks whether the function is called with the correct type of parameters
Decision gist · record as of 2026-08-14
Yes, if you target Python 3.14+ and need runtime type validation as a safety layer. The active maintenance, zero known vulnerabilities, and mypyc performance boost make it solid for production use. The CC-BY-ND-4.0 license is permissive but requires attribution. Not suitable if you're on Python 3.13 or earlier.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.14 or above; older Python versions are not supported.
- Medium install friction due to compiled wheels for specific Python versions.
- Active maintenance with recent release (17 days old) and steady repository activity.
License · maintenance · safety
CC-BY-ND-4.0 (permissive) — Licensed under CC-BY-ND-4.0, a permissive license that allows use and modification but requires attribution and prohibits derivative works. Suitable for most projects, though the non-derivative restriction may constrain some use cases.
last release 2026-07-28 (17 days) · last repo commit 2026-08-08 · 121 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 142,255 downloads/mo, #11,220 on PyPI
Alternatives
Verify before relying
pip install strongtyping
from strongtyping.strong_typing import match_typing
@match_typing
def add(left: int, right: int) -> int:
return left + right
result = add(1, 2) # 3
add(1, "2") # raises TypeMismatch- Whether mypyc compilation provides the claimed 5x performance boost in real-world usage patterns.
- How TypeMismatch exceptions integrate with existing error handling and logging frameworks.
- Whether the AI Agent Skills integration provides practical value beyond documentation.
What it is and what it does
strongtyping is a runtime type-checking decorator for Python functions that validates arguments against their type annotations at call time. When a function is decorated with @match_typing, the decorator intercepts calls and checks that each argument matches its declared type; if not, it raises a TypeMismatch exception. This catches type errors that static type checkers like mypy might miss, particularly in dynamic code paths or when working with external data.
The package includes specialized support for async functions via @a_match_typing, which preserves the coroutine interface while performing the same validation. Since version 3.13.6, the core logic is compiled with mypyc for performance. The library targets Python 3.14 and above, uses ujson for serialization, and includes pytest and ruff in its development stack. It's maintained actively and documented on readthedocs.
Use it for
- Validate API endpoint parameters at runtime before processing, catching type errors from client requests.
- Enforce type contracts in data processing pipelines where external or user-provided data enters functions.
- Debug type-related bugs in dynamic code by catching mismatches early rather than at point of failure.
- Protect async functions from type errors in concurrent workflows where static analysis may be incomplete.
- Supplement mypy or other static checkers in codebases where runtime type safety is critical.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you target Python 3.14+ and need runtime type validation as a safety layer.
The active maintenance, zero known vulnerabilities, and mypyc performance boost make it solid for production use. The CC-BY-ND-4.0 license is permissive but requires attribution. Not suitable if you're on Python 3.13 or earlier.
Install
strongtyping on PyPI
Before you install
Medium install friction due to compiled wheels for specific Python versions. Active maintenance with recent release (17 days old) and steady repository activity. Requires Python 3.14 or above, which limits adoption to very recent Python versions.
Requires Python 3.14 or above; older Python versions are not supported.
License in practice
Licensed under CC-BY-ND-4.0, a permissive license that allows use and modification but requires attribution and prohibits derivative works. Suitable for most projects, though the non-derivative restriction may constrain some use cases.
Quickstart
pip install strongtyping
from strongtyping.strong_typing import match_typing
@match_typing
def add(left: int, right: int) -> int:
return left + right
result = add(1, 2) # 3
add(1, "2") # raises TypeMismatch
Verify before relying
- Whether mypyc compilation provides the claimed 5x performance boost in real-world usage patterns.
- How TypeMismatch exceptions integrate with existing error handling and logging frameworks.
- Whether the AI Agent Skills integration provides practical value beyond documentation.
Package facts
| License | CC-BY-ND-4.0 permissive |
| Python support | Capped below the current Python release >=3.14 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 5 packagesujsonlibrttyping-extensionspytestruff |
| Maintenance | Actively maintained 17 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 142,255 / month, #11,220 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15 |
Evidence: strongtyping-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl; strongtyping-3.14.5-cp314-cp314-macosx_11_0_arm64.whl; strongtyping-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; strongtyping-3.14.5-cp314-cp314-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type mismatch detection”
- strongtypingA runtime type-checking decorator that validates function arguments…
- data-platform-helpersProvides version checking and validation utilities for distributed…
- scitex-devProvides unified developer tooling for the SciTeX ecosystem: audits…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also overrides · mypy · func_args · mypy-extensions · retry-decorator · typepy · makefun · types-decorator · typing-inspection · fastjsonschema