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

Add a runtime type checker #755

Open
rg936672 opened this issue Aug 29, 2024 · 0 comments
Open

Add a runtime type checker #755

rg936672 opened this issue Aug 29, 2024 · 0 comments

Comments

@rg936672
Copy link
Contributor

What's the issue?

A checker such as beartype would provide an extra layer of assurance that our type hints are actually correct. Runtime type checkers will be able to examine more complex type hints (such as jax array shapes as added in #746), which is an advantage over Pyright (#427). However, there currently doesn't seem to be any reason we can't have both! If performance is a concern, we can only run the runtime checker while running the test suite, but beartype is apparently fairly speedy so we could include it in the live package as well.

@rg936672 rg936672 added the new Something yet to be discussed by development team label Aug 29, 2024
@rg936672 rg936672 mentioned this issue Aug 29, 2024
9 tasks
@bc294725 bc294725 removed the new Something yet to be discussed by development team label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants