mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2026-01-17 11:40:39 +03:00
flake8 fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -11,6 +11,7 @@ class Base:
|
||||
id: Any
|
||||
__name__: str
|
||||
# Generate __tablename__ automatically
|
||||
|
||||
@declared_attr
|
||||
def __tablename__(cls) -> str:
|
||||
return cls.__name__.lower()
|
||||
|
||||
Reference in New Issue
Block a user