From a6f8fc6d7e612a486710fe4c48c4785d588568a2 Mon Sep 17 00:00:00 2001 From: collerek Date: Mon, 3 Aug 2020 20:05:57 +0200 Subject: [PATCH] remove unneeded future import --- .coverage | Bin 53248 -> 53248 bytes orm/models.py | 6 ++---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.coverage b/.coverage index 5710bb4dace601b758eec3329f156f463a9c90a0..0c9f6db6adb3236f1925954b21a689c4260c5301 100644 GIT binary patch delta 53 zcmV-50LuS>paX!Q1F$kL2r@7_Ff}?fF|#@^YG4@d<~u*T|J?Df$=;`aYInDL2YUa# L-}eEtypKdcNzWMf delta 53 zcmV-50LuS>paX!Q1F$kL2r)T2H8?smII}u0YG4?;oA1o*{&UB_CVQXysomY~9q9e{ Le%}YPypKdcV)hzw diff --git a/orm/models.py b/orm/models.py index 19224aa..096415e 100644 --- a/orm/models.py +++ b/orm/models.py @@ -1,7 +1,5 @@ -from __future__ import annotations - import json -from typing import Any +from typing import Any, Type from typing import Set, Dict import pydantic @@ -179,7 +177,7 @@ class Model(metaclass=ModelMetaclass): result = await self.__database__.execute(expr) return result - async def load(self) -> Model: + async def load(self) -> 'Model': expr = self.__table__.select().where(self.pk_column == self.pk) row = await self.__database__.fetch_one(expr) self.from_dict(dict(row))