remove unneeded future import

This commit is contained in:
collerek
2020-08-03 20:05:57 +02:00
parent e0bb7e2cda
commit a6f8fc6d7e
2 changed files with 2 additions and 4 deletions

BIN
.coverage

Binary file not shown.

View File

@ -1,7 +1,5 @@
from __future__ import annotations
import json import json
from typing import Any from typing import Any, Type
from typing import Set, Dict from typing import Set, Dict
import pydantic import pydantic
@ -179,7 +177,7 @@ class Model(metaclass=ModelMetaclass):
result = await self.__database__.execute(expr) result = await self.__database__.execute(expr)
return result return result
async def load(self) -> Model: async def load(self) -> 'Model':
expr = self.__table__.select().where(self.pk_column == self.pk) expr = self.__table__.select().where(self.pk_column == self.pk)
row = await self.__database__.fetch_one(expr) row = await self.__database__.fetch_one(expr)
self.from_dict(dict(row)) self.from_dict(dict(row))