https://github.com/felixthec/strongtyping
Decorator which checks whether the function is called with the correct type of parameters.
https://github.com/felixthec/strongtyping
decorator docstring-checker property python runtime-checking setter-getter type-checking typechecking typing-decorator
Last synced: 5 days ago
JSON representation
Decorator which checks whether the function is called with the correct type of parameters.
- Host: GitHub
- URL: https://github.com/felixthec/strongtyping
- Owner: FelixTheC
- Created: 2020-05-01T14:46:15.000Z (about 6 years ago)
- Default Branch: py_3_13
- Last Pushed: 2025-01-05T12:52:14.000Z (over 1 year ago)
- Last Synced: 2025-04-12T03:52:05.154Z (about 1 year ago)
- Topics: decorator, docstring-checker, property, python, runtime-checking, setter-getter, type-checking, typechecking, typing-decorator
- Language: Python
- Homepage: https://pypi.org/project/strongtyping/
- Size: 405 KB
- Stars: 110
- Watchers: 5
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.python.org/downloads/release/python-3100/)
[](https://www.python.org/downloads/release/python-3110/)
[](https://www.python.org/downloads/release/python-3120/)
[](https://www.python.org/downloads/release/python-3130/)
[](https://www.python.org/downloads/release/python-3140/)
[](https://badge.fury.io/py/strongtyping)


[](https://github.com/psf/black)
[](https://pycqa.github.io/isort/)
[](https://strongtyping.readthedocs.io/en/latest/?badge=latest)
[](https://pypi.org/project/strongtyping/)
[](SKILL.md)
# 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.13 and above
- If you need a different version please checkout the release Tags 2.\*.*
## Performance boost with mypyc
- Since __3.13.6__ `mypyc` is used to compile the core logic code.
- This results in a significant performance boost from around __5x faster__, especially for large containers.
### 🤖 AI Agent Ready
This library includes [Agent Skills](https://agentskills.io/) 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:
```bash
pytest tests/test_skills.py
```
## [Docs are available on 'readthedocs'](https://strongtyping.readthedocs.io/en/latest/#the-solution)