{"id":22416,"library":"strongtyping","title":"strongtyping","description":"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.","status":"active","version":"3.13.6","language":"python","source_language":"en","source_url":"https://github.com/FelixTheC/strongtyping","tags":["type-checking","runtime","decorator","typing","validation"],"install":[{"cmd":"pip install strongtyping","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from strongtyping.strong_typing import strong_typing","symbol":"strong_typing","correct":"from strongtyping import strong_typing"}],"quickstart":{"code":"from strongtyping.strong_typing import strong_typing\n\n@strong_typing\ndef greet(name: str) -> str:\n    return f\"Hello {name}\"\n\nprint(greet(\"World\"))\n# print(greet(42))  # raises TypeMisMatch","lang":"python","description":"Basic runtime type checking with the strong_typing decorator."},"warnings":[{"fix":"Upgrade Python to >=3.13 or use strongtyping <3.13.0 for older Python.","message":"Python 3.13 or higher is required. The library dropped support for earlier Python versions in v3.13.0.","severity":"breaking","affected_versions":">=3.13.0"},{"fix":"Use 'TypeMismatch' instead of 'TypeMisMatch' if available.","message":"The old 'TypeMisMatch' class name (capital M) is deprecated in favor of 'TypeMismatch' (lowercase m) in recent versions.","severity":"deprecated","affected_versions":"<3.13.0?"},{"fix":"Import types from typing (e.g., from typing import List) and annotate with List[int].","message":"The 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.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'3.13':28 '3.13.6':25 'annot':19 'bump':37 'cadenc':30 'check':10,40 'current':23 'custom':21 'decor':6,42 'frequent':34 'function':12 'irregular':32 'librari':4 'minor':35 'paramet':13 'provid':5 'python':3,27 'releas':29 'requir':26 'return':15 'runtim':8,41 'strongtyp':1 'support':17 'type':9,39,43 'type-check':38 'typeddict':18 'valid':22,44 'valu':16 'version':24,36","created_at":"2026-04-27T17:05:04.160321+00:00","updated_at":"2026-04-27T17:05:04.160321+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"3.14.3","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/FelixTheC/strongtyping","docs":"https://strongtyping.readthedocs.io/en/latest/","changelog":null,"pypi":"https://pypi.org/project/strongtyping/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}