add internal forwardref stub

This commit is contained in:
collerek
2021-01-12 15:28:35 +01:00
parent fdef91d0c2
commit 3cf846ee23
4 changed files with 28 additions and 3 deletions

View File

@ -1,9 +1,10 @@
from typing import Dict, List, Optional, TYPE_CHECKING, Tuple, Type
from pydantic.typing import ForwardRef
import ormar # noqa: I100
from ormar.fields.foreign_key import ForeignKeyField
from ormar.models.helpers.pydantic import populate_pydantic_default_values
from ormar.protocols.forward_ref import ForwardRef
if TYPE_CHECKING: # pragma no cover
from ormar import Model