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

@@ -103,9 +103,9 @@ if TYPE_CHECKING:
class Column(ColumnExpr, Generic[T]):
def __init__(self, name: str = None, primary: bool = False):
def __init__(self, name: str = None, primary: bool = False): # type: ignore
self.primary = primary
self.name: str = name # type: ignore
self.name: str = name
self.expr = sql.Identifier(name) if name else sql.SQL('')
self.values = ()