Commit 07439f1
Fix mypy: add explicit ndarray type annotations for class attributes
mypy infers different ndarray shape types for np.zeros(0) vs np.array([...]),
causing type mismatch errors in subclasses. Explicit np.ndarray annotations
make the types compatible.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 67392de commit 07439f1
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments