rewrite: Fix ORM typing issues.

This commit is contained in:
2022-11-11 08:03:13 +02:00
parent 3445bdff3e
commit 2121749238
5 changed files with 14 additions and 10 deletions

View File

@@ -131,7 +131,7 @@ class RowModel:
# TODO: Proper typing for a classvariable which gets dynamically assigned in subclass
table: RowTable
def __init_subclass__(cls: Type[RowT], table: str = None):
def __init_subclass__(cls: Type[RowT], table: Optional[str] = None):
"""
Set table, _columns_, and _key_.
"""