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

[BUG]: Pyright failures due to numpy typing #28

Open
nfelt14 opened this issue Sep 10, 2024 · 0 comments
Open

[BUG]: Pyright failures due to numpy typing #28

nfelt14 opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nfelt14
Copy link
Collaborator

nfelt14 commented Sep 10, 2024

Description of the bug

Currently pyright fails with a massive amount of warnings.
This is due to the nature of generic types and how numpy applies type hinting.
The problem is figuring out how to apply generic dtype type hinting for arrays, such as ndarrays. There also needs to be a way to properly type hint the dtype itself. Solving this will improve type safety and clarity when working with arrays in the code.

Steps To Reproduce

Run pyright

Environment Information

Ensure pyright is installed in the virtual environment.
Activate the virtual environment.

Additional Information

No response

@nfelt14 nfelt14 added the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant