{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"A runtime type-checking decorator that validates function arguments against their type annotations and raises TypeMismatch on mismatch, with dedicated async support and mypyc compilation for performance.","skillfed_tags":["runtime-type-checking","async-support","decorator-based"],"use_cases":["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."],"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.\n\nThe 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.","worth_installing":"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."},"id":"strongtyping","links":{"html":"https://skillfed.io/packages/strongtyping","md":"https://skillfed.io/packages/strongtyping.md","pypi":"https://pypi.org/project/strongtyping/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-28","license_spdx":null,"license_treatment":"permissive","name":"strongtyping","python_support":"capped_below_current","summary":"Decorator which checks whether the function is called with the correct type of parameters"},"popularity":{"monthly_downloads":142255,"position":11220,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.14.5"}
