Commit 1cad8f9
authored
Fix truediv type-checking for ValueType2 (#88)
- ValueType2 (the generic parameter of ValueArray ) was defined as
invariant.
- This prevents FrequencyArray (which is ValueArray[Frequency]) from
being compatible with ValueArray[Value].
- As a result, mypy could not match the __truediv__ operator on
ValueArray and fell back to Value.__rtruediv__ , which also failed.
Fixes internal bug b/5071212331 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
0 commit comments