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

Incomplete rv_generic._argcheck return type #33

Closed
jorenham opened this issue Sep 7, 2024 · 0 comments · Fixed by #37
Closed

Incomplete rv_generic._argcheck return type #33

jorenham opened this issue Sep 7, 2024 · 0 comments · Fixed by #37
Assignees
Labels
scipy.stats stubs: untyped Annotations that use `Untyped`

Comments

@jorenham
Copy link
Owner

jorenham commented Sep 7, 2024

_argcheck is currently annotated to always return npt.NDArray[np.bool_], but it could also return np.bool_ (i.e. for all-scalar input)

@jorenham jorenham added scipy.stats stubs: untyped Annotations that use `Untyped` labels Sep 7, 2024
@jorenham jorenham self-assigned this Sep 7, 2024
@jorenham jorenham changed the title Incorrect rv_generic._argcheck return type Incomplete rv_generic._argcheck return type Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scipy.stats stubs: untyped Annotations that use `Untyped`
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant