Update relation_protocol.py
This commit is contained in:
@ -1,4 +1,9 @@
|
|||||||
from typing import Protocol, TYPE_CHECKING, Type, Union
|
from typing import TYPE_CHECKING, Type, Union
|
||||||
|
|
||||||
|
try:
|
||||||
|
from typing import Protocol
|
||||||
|
except ImportError:
|
||||||
|
from typing_extentions import Protocol
|
||||||
|
|
||||||
if TYPE_CHECKING: # pragma: nocover
|
if TYPE_CHECKING: # pragma: nocover
|
||||||
from ormar import Model
|
from ormar import Model
|
||||||
|
|||||||
Reference in New Issue
Block a user