🐛 Remove 3.9 type syntax
This commit is contained in:
1 parent
eace79f012
commit
e5de16f227
1 file changed
+3
-1
@@ -1,3 +1,5 @@
|
|||||||
|
from typing import List
|
||||||
|
|
||||||
import strawberry
|
import strawberry
|
||||||
import strawberry_django
|
import strawberry_django
|
||||||
from django.contrib.auth.models import User as DjangoUser
|
from django.contrib.auth.models import User as DjangoUser
|
||||||
@@ -8,7 +10,7 @@ from bbs.api.types.users import User
|
|||||||
|
|
||||||
@strawberry.type
|
@strawberry.type
|
||||||
class UsersQueries:
|
class UsersQueries:
|
||||||
all_users: list[User] = strawberry_django.field()
|
all_users: List[User] = strawberry_django.field()
|
||||||
|
|
||||||
@strawberry.field
|
@strawberry.field
|
||||||
def user(self, user_id: ID) -> User:
|
def user(self, user_id: ID) -> User:
|
||||||
|
|||||||
Reference in new issue
Block a user