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

Improve type annotations #511

Open
wants to merge 36 commits into
base: release/0.3.x
Choose a base branch
from
Open

Improve type annotations #511

wants to merge 36 commits into from

Conversation

mhostetter
Copy link
Owner

No description provided.

@mhostetter mhostetter added the typing Related to type hints label Sep 30, 2023
If `Self + NDArray` is performed, this prevents `mypy` from falling back to `ndarray.__radd__()`, which has a return type of `NDArray`. This ensures that the arithmetic type is always `Self`. The runtime type checking will ensure valid arguments are passed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typing Related to type hints
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants