Skip to content

Commit d456d8e

Browse files
committed
[django-filter] Fix REST framework import configuration
1 parent 7c8175d commit d456d8e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

stubs/django-filter/METADATA.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
version = "25.1.*"
22
upstream_repository = "https://github.com/carltongibson/django-filter/"
3-
requires = ["django-stubs", "djangorestframework-stubs"]
3+
requires = ["django-stubs"]
44

55
[tool.stubtest]
66
mypy_plugins = ["mypy_django_plugin.main"]
77
mypy_plugins_config = {"django-stubs" = {"django_settings_module" = "@tests.django_settings"}}
8+
stubtest_requirements = ["djangorestframework-stubs"]

stubs/django-filter/django_filters/rest_framework/backends.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from typing import Any
33
from django.db.models import QuerySet
44
from django.http import HttpRequest
55
from django_filters.filterset import FilterSetMetaclass
6-
from rest_framework.views import APIView
6+
from rest_framework.views import APIView # type: ignore[import-not-found]
77

88
from . import filterset
99

0 commit comments

Comments
 (0)