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

django/contrib/postgres/fields/ranges.py:*:base_field should be typed as an instance #2410

Open
delfick opened this issue Oct 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@delfick
Copy link
Contributor

delfick commented Oct 20, 2024

I believe django/contrib/postgres/fields/ranges.py:*:base_field has the wrong type.

They were changed to be types here #2078 (comment)

But it seems django will instantiate them in the constructor https://github.com/django/django/blob/40a60d589e1d0d290c3b79c7e97d9cd0c94e52e3/django/contrib/postgres/fields/ranges.py#L65

Before I make a PR to change that, would you agree the stubs should say they're an instance?

@delfick delfick added the bug Something isn't working label Oct 20, 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
Development

No branches or pull requests

1 participant