Registry / type-stubs / strongtyping

strongtyping

JSON →
library3.14.3pypypi✓ verified 87d ago

A Python library providing decorators for runtime type checking of function parameters and return values, supporting TypedDict, Annotated, and custom validators. Current version 3.13.6, requires Python >=3.13. Release cadence is irregular, with frequent minor version bumps.

pip install strongtyping
INSTALL
IMPORT
SIG · STRONGTYPING
S
strongtyping
type-stubspythonv3.14.3
Install
1.8s avg
Import
—
Disk
17MB
Pass rate
9/ 10
Env Coverage9 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v3.11.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 1.8s
py 3.11
✓ —
✓ 1.6s
py 3.12
✓ —
✓ 1.5s
py 3.13
✕ build_error
✓ 2s
py 3.9
✓ —
✓ 2.1s
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

strong_typing
✓ from strongtyping import strong_typing
✗ from strongtyping.strong_typing import strong_typing

Basic runtime type checking with the strong_typing decorator.

from strongtyping.strong_typing import strong_typing @strong_typing def greet(name: str) -> str: return f"Hello {name}" print(greet("World")) # print(greet(42)) # raises TypeMisMatch
Debug
Known issues
breakingPython 3.13 or higher is required. The library dropped support for earlier Python versions in v3.13.0.
fix
Upgrade Python to >=3.13 or use strongtyping <3.13.0 for older Python.
affects: >=3.13.0
deprecatedThe old 'TypeMisMatch' class name (capital M) is deprecated in favor of 'TypeMismatch' (lowercase m) in recent versions.
fix
Use 'TypeMismatch' instead of 'TypeMisMatch' if available.
affects: <3.13.0?
gotchaThe decorators do not work with built-in typing generics like List[int] if the type is not imported from typing. Use the typing module types (e.g., typing.List) rather than built-in list subclassing.
fix
Import types from typing (e.g., from typing import List) and annotate with List[int].
affects: all
Upgrade
Version history
3.14.3latest on PyPI · released May 13, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
strongtyping — pip install strongtyping · libregistry