flake8 fixes

This commit is contained in:
grillazz
2021-07-31 12:51:00 +02:00
parent 0d62cf12a2
commit 4ddb571ded
5 changed files with 8 additions and 7 deletions

View File

@@ -1,2 +1,2 @@
from the_app.models.nonsense import Nonsense
from the_app.models.stuff import Stuff
from the_app.models.nonsense import Nonsense # noqa
from the_app.models.stuff import Stuff # noqa

View File

@@ -11,6 +11,7 @@ class Base:
id: Any
__name__: str
# Generate __tablename__ automatically
@declared_attr
def __tablename__(cls) -> str:
return cls.__name__.lower()