Update relation_protocol.py

This commit is contained in:
collerek
2020-11-01 18:03:18 +07:00
committed by GitHub
parent 9bcf6a346a
commit 551aabf0a8

View File

@ -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