Update queryset_protocol.py
This commit is contained in:
@ -1,4 +1,9 @@
|
|||||||
from typing import Any, List, Optional, Protocol, Sequence, TYPE_CHECKING, Union
|
from typing import Any, List, Optional, Sequence, TYPE_CHECKING, Union
|
||||||
|
|
||||||
|
try:
|
||||||
|
from typing import Protocol
|
||||||
|
except ImportError:
|
||||||
|
from typing_extentions import Protocol
|
||||||
|
|
||||||
if TYPE_CHECKING: # noqa: C901; #pragma nocover
|
if TYPE_CHECKING: # noqa: C901; #pragma nocover
|
||||||
from ormar import QuerySet, Model
|
from ormar import QuerySet, Model
|
||||||
|
|||||||
Reference in New Issue
Block a user