change imports to pydantic for ForwardRef to avoid crashes on 3.6

This commit is contained in:
collerek
2021-01-12 15:02:10 +01:00
parent 8d619d5fc1
commit fdef91d0c2
4 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,7 @@
from typing import Dict, ForwardRef, List, Optional, TYPE_CHECKING, Tuple, Type
from typing import Dict, List, Optional, TYPE_CHECKING, Tuple, Type
import ormar
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