Commit db1df1f
committed
fix(io.ec_data): satisfy ruff (UP037, B905, I001)
- UP037: drop the string-quoted forward reference on EcData.empty's
return annotation; the module already uses `from __future__ import
annotations`, so the bare class name is fine.
- B905: zip(coo.row, coo.col, coo.data) now passes strict=True. The
three arrays come from the same COO matrix and are guaranteed
equal length; strict=True turns any future drift into a loud
TypeError instead of silent truncation.
- I001: drop the stray blank line between the import block and the
first section comment in tests/test_io_yaml_ec_data.py.1 parent 39adaf6 commit db1df1f
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
315 | 318 | | |
316 | 319 | | |
317 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
0 commit comments