Skip to content

Commit f646c36

Browse files
committed
Use typing.List instead of builtin
1 parent 2cb211b commit f646c36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/typecheck/test_views.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@
5858
5959
- case: test_override_get_permissions
6060
main: |
61+
from typing import List
62+
6163
from rest_framework.viewsets import GenericViewSet
6264
from rest_framework.permissions import BasePermission
6365
6466
class MyView(GenericViewSet):
65-
def get_permissions(self) -> list[BasePermission]:
67+
def get_permissions(self) -> List[BasePermission]:
6668
...

0 commit comments

Comments
 (0)