From 86978ce809679b8ef16127729ae213285dab6c49 Mon Sep 17 00:00:00 2001 From: collerek Date: Sun, 28 Feb 2021 09:21:38 +0100 Subject: [PATCH] fix mypy --- ormar/fields/foreign_key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ormar/fields/foreign_key.py b/ormar/fields/foreign_key.py index 35a7b2aa8..5e1e86cd5 100644 --- a/ormar/fields/foreign_key.py +++ b/ormar/fields/foreign_key.py @@ -73,7 +73,7 @@ def create_dummy_model( "".join(choices(string.ascii_uppercase, k=2)) + uuid.uuid4().hex[:4] ).lower() fields = {f"{pk_field.name}": (pk_field.__type__, None)} - dummy_model = create_model( + dummy_model = create_model( # type: ignore f"PkOnly{base_model.get_name(lower=False)}{alias}", __module__=base_model.__module__, **fields, # type: ignore