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

missing (abstract?) methods in rv_discrete and rv_continuous #34

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

missing (abstract?) methods in rv_discrete and rv_continuous #34

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

  • _param_info()
  • _shape_info()

these are implicitly assumed to exist at runtime, but have no "abstract" methods to indicate so in rv_{generic,continuous,frozen}

I'm guessing that the only way that mypy will accept this, is by annotating them as Callable attributes (instead of actual abstract methods)

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