Skip to content

FelixTheC/strongtyping

Repository files navigation

Python 3.10 Python 3.11 Python 3.12 Python 3.13 Python 3.14 PyPI version Python application image Ruff uv Documentation Status AI Agents

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.14 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 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:

pytest tests/test_skills.py

About

Decorator which checks whether the function is called with the correct type of parameters.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages