refactor decorator to separate file

This commit is contained in:
collerek
2020-08-11 19:03:02 +02:00
parent 24b5649c56
commit 146dbea015
5 changed files with 31 additions and 24 deletions

View File

@ -11,7 +11,7 @@ if TYPE_CHECKING: # pragma no cover
from orm.models import Model
def create_dummy_instance(fk: Type["Model"], pk: int = None) -> "Model":
def create_dummy_instance(fk: Type["Model"], pk: Any = None) -> "Model":
init_dict = {
**{fk.__pkname__: pk or -1},
**{