Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime checking with beartype #152

Open
lu-pl opened this issue Nov 30, 2024 · 1 comment · May be fixed by #153
Open

Runtime checking with beartype #152

lu-pl opened this issue Nov 30, 2024 · 1 comment · May be fixed by #153
Assignees
Labels
enhancement New feature or request low priority

Comments

@lu-pl
Copy link
Contributor

lu-pl commented Nov 30, 2024

beartype offers high performance runtime type checking.

Together with the constraints enforced by Pydantic and FastAPI, beartype would provide additional robustness in the form of fast failures with meaningful exceptions.

@lu-pl lu-pl self-assigned this Nov 30, 2024
@lu-pl lu-pl added the enhancement New feature or request label Nov 30, 2024
@lu-pl lu-pl linked a pull request Nov 30, 2024 that will close this issue
lu-pl added a commit that referenced this issue Dec 1, 2024
beartype offers high performance runtime type checking based on type annotations.
Runtime checking can contribute to a healthier code base (see fixes)
and also allows fast failures with meaningful exceptions for library users.

Closes #152.
@lu-pl
Copy link
Contributor Author

lu-pl commented Dec 16, 2024

Note: Having beartype checking in place showed that the _is_type utilities used in ModelBindingsMapper are incorrectly typed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants