An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

[![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3100/)
[![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)
[![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/release/python-3120/)
[![Python 3.13](https://img.shields.io/badge/python-3.13-blue.svg)](https://www.python.org/downloads/release/python-3130/)
[![Python 3.14](https://img.shields.io/badge/python-3.14-blue.svg)](https://www.python.org/downloads/release/python-3140/)
[![PyPI version](https://badge.fury.io/py/strongtyping.svg)](https://badge.fury.io/py/strongtyping)
![Python application](https://github.com/FelixTheC/strongtyping/actions/workflows/python-app.yml/badge.svg)
![image](https://codecov.io/gh/FelixTheC/strongtyping/graph/badge.svg)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![Documentation Status](https://readthedocs.org/projects/strongtyping/badge/?version=latest)](https://strongtyping.readthedocs.io/en/latest/?badge=latest)
[![](https://img.shields.io/pypi/dm/strongtyping.svg)](https://pypi.org/project/strongtyping/)
[![AI Agents](https://img.shields.io/badge/AI_Agents-SKILL.md-blue?logo=robotframework&logoColor=white)](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)