refactor many2many typehints into protocols

This commit is contained in:
collerek
2020-11-01 08:29:06 +01:00
parent 79cf225ddc
commit 9175f6004c
6 changed files with 66 additions and 62 deletions

View File

@ -10,7 +10,7 @@ if TYPE_CHECKING: # pragma no cover
T = TypeVar("T", bound=Model)
class QuerysetProxy:
class QuerysetProxy(ormar.QuerySetProtocol):
if TYPE_CHECKING: # pragma no cover
relation: "Relation"