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
api_settings.DEFAULT_FILTER_BACKENDS
In api_settings, DEFAULT_FILTER_BACKENDS is typed as Sequence[str], but it is used in GenericAPIView, which is typed as Sequence[Union[Type[BaseFilterBackend], Type[BaseFilterProtocol[_MT_co]]]].
DEFAULT_FILTER_BACKENDS
Sequence[str]
GenericAPIView
Sequence[Union[Type[BaseFilterBackend], Type[BaseFilterProtocol[_MT_co]]]]
As stated in the APISettings docstring](https://github.com/encode/django-rest-framework/blob/e5fb9af0eaffde683fa0af3987085f86cf0d2640/rest_framework/settings.py#L184), the import strings are resolved to the corresponding classes, so the resulting strings should not appear in api_settings.
APISettings
api_settings
python
django
mypy
django-stubs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
What's wrong
In api_settings,
DEFAULT_FILTER_BACKENDS
is typed asSequence[str]
, but it is used inGenericAPIView
, which is typed asSequence[Union[Type[BaseFilterBackend], Type[BaseFilterProtocol[_MT_co]]]]
.How is that should be
As stated in the
APISettings
docstring](https://github.com/encode/django-rest-framework/blob/e5fb9af0eaffde683fa0af3987085f86cf0d2640/rest_framework/settings.py#L184), the import strings are resolved to the corresponding classes, so the resulting strings should not appear inapi_settings
.System information
python
version: 3.10.4django
version: 4.0.4mypy
version: 0.950django-stubs
version: 1.11.0The text was updated successfully, but these errors were encountered: