Commit e2117ed
fix: Pre-declare order type to resolve mypy no-any-return in _morton_order
np.asarray and np.stack return Any with numpy 2.1 type stubs, causing
mypy to infer the return type as Any. Pre-declaring order as
npt.NDArray[np.intp] before the if/else makes the intended type explicit.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b4d5024 commit e2117ed
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1522 | 1522 | | |
1523 | 1523 | | |
1524 | 1524 | | |
| 1525 | + | |
1525 | 1526 | | |
1526 | 1527 | | |
1527 | 1528 | | |
| |||
0 commit comments