22 Mar
2023
22 Mar
'23
7:46 a.m.
I tried this way, but I found it cannot make `Class.attribute` assignable. With this solution, in the example below, pyright reports an incompatible type error in line 3. ```python class Entity(Base): __tablename__ = 'entity' column_1: AttrAnnotation[Column, int] = Column('column_1', BIGINT(unsigned=True), primary_key=True, autoincrement=True) # ^ Expression of type "Column[int]" cannot be assigned to declared type "AttrAnnotation[Column[Unknown], int]" # "Column[int]" is incompatible with "AttrAnnotation[Column[Unknown], int]" ``` Does anyone still have any idea?