Skip to content

Commit 59fefcc

Browse files
committed
fix: return list instead of sequence
1 parent 3a0197a commit 59fefcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework-stubs/views.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ from rest_framework.authentication import BaseAuthentication
88
from rest_framework.metadata import BaseMetadata
99
from rest_framework.negotiation import BaseContentNegotiation
1010
from rest_framework.parsers import BaseParser
11-
from rest_framework.permissions import _PermissionClass, _SupportsHasPermission
11+
from rest_framework.permissions import BasePermission, _PermissionClass
1212
from rest_framework.renderers import BaseRenderer
1313
from rest_framework.request import Request
1414
from rest_framework.response import Response
@@ -71,7 +71,7 @@ class APIView(View):
7171
def get_renderers(self) -> list[BaseRenderer]: ...
7272
def get_parsers(self) -> list[BaseParser]: ...
7373
def get_authenticators(self) -> list[BaseAuthentication]: ...
74-
def get_permissions(self) -> Sequence[_SupportsHasPermission]: ...
74+
def get_permissions(self) -> list[BasePermission]: ...
7575
def get_throttles(self) -> list[BaseThrottle]: ...
7676
def get_content_negotiator(self) -> BaseContentNegotiation: ...
7777
def get_exception_handler(self) -> Callable: ...

0 commit comments

Comments
 (0)