Incorrect type hint for api_settings.DEFAULT_FILTER_BACKENDS
#225
Labels
bug
Something isn't working
api_settings.DEFAULT_FILTER_BACKENDS
#225
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: