Commit c57d3ab
authored
Ammend annotation for
This fixes an assignablity issue in subclasses that was caused by using too strict an annotation for the purpose of `__slots__` as a special case for mypy.
We can keep an annotation here for mypy if really needed, but it needs to work with subclass assignability.
ideally, long term all data model names are understood as part of the specification, but this needs to be permissive enough to allow subclasses to add members.
See error in pyright as a result of adding a special case for mypy: microsoft/pyright#11058__slots__
1 parent 546dd28 commit c57d3ab
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments