We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In method_overridden(), the instance arg is typed as Model:
method_overridden()
instance
Model
djangorestframework-stubs/rest_framework-stubs/relations.pyi
Line 9 in 466b1f5
However, the only time the func is called in drf source is in RelatedField.__init__() checking that get_queryset() is overridden:
RelatedField.__init__()
get_queryset()
if not method_overridden('get_queryset', RelatedField, self):
Perhaps instance should just be typed Any?
Any
I'll be happy to PR when I get some time.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In
method_overridden()
, theinstance
arg is typed asModel
:djangorestframework-stubs/rest_framework-stubs/relations.pyi
Line 9 in 466b1f5
However, the only time the func is called in drf source is in
RelatedField.__init__()
checking thatget_queryset()
is overridden:Perhaps
instance
should just be typedAny
?I'll be happy to PR when I get some time.
The text was updated successfully, but these errors were encountered: