clean code
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
from typing import List, Any
|
||||
from typing import Any, List
|
||||
|
||||
import sqlalchemy
|
||||
|
||||
import orm.queryset.queryset
|
||||
from orm.models.fakepydantic import FakePydantic
|
||||
import orm.queryset # noqa I100
|
||||
from orm.models import FakePydantic # noqa I100
|
||||
|
||||
|
||||
class Model(FakePydantic):
|
||||
__abstract__ = True
|
||||
|
||||
objects = orm.queryset.queryset.QuerySet()
|
||||
objects = orm.queryset.QuerySet()
|
||||
|
||||
@classmethod
|
||||
def from_row(
|
||||
@ -90,4 +90,4 @@ class Model(FakePydantic):
|
||||
expr = self.__table__.select().where(self.pk_column == self.pk)
|
||||
row = await self.__database__.fetch_one(expr)
|
||||
self.from_dict(dict(row))
|
||||
return self
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user