clean code
This commit is contained in:
@ -1,14 +1,17 @@
|
||||
import copy
|
||||
from typing import Dict, Tuple, Type, Optional, List, Any
|
||||
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Tuple, Type
|
||||
|
||||
import sqlalchemy
|
||||
from pydantic import BaseConfig, create_model
|
||||
from pydantic.fields import ModelField
|
||||
|
||||
from orm import ForeignKey, ModelDefinitionError
|
||||
from orm import ForeignKey, ModelDefinitionError # noqa I100
|
||||
from orm.fields import BaseField
|
||||
from orm.relations import RelationshipManager
|
||||
|
||||
if TYPE_CHECKING: # pragma no cover
|
||||
from orm import Model
|
||||
|
||||
relationship_manager = RelationshipManager()
|
||||
|
||||
|
||||
@ -129,4 +132,4 @@ class ModelMetaclass(type):
|
||||
|
||||
expand_reverse_relationships(new_model)
|
||||
|
||||
return new_model
|
||||
return new_model
|
||||
|
||||
Reference in New Issue
Block a user