refactor: enhance type hinting and casting for improved type safety across multiple files
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ class Base(DeclarativeBase):
|
||||
"""Base class that configures naming conventions."""
|
||||
|
||||
@declared_attr.directive
|
||||
def __tablename__(cls) -> str: # type: ignore[misc] # noqa: N805 - SQLAlchemy expects cls
|
||||
def __tablename__(cls) -> str: # noqa: N805 - SQLAlchemy expects cls
|
||||
return cls.__name__.lower()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user