|
|
|
|
|
by kietay
459 days ago
|
|
One example:
```
class Base(DeclarativeBase):
pass class Foo(Base):
name: Mapped[str] x = Foo()
``` does not get caught as a type error statically, I'm assuming because all records are treated as mutable. However, `x = Foo(name=2)` also doesn't get caught by pyright, which seems wrong. I could be misusing somehow though. |
|