Commit 4ddf3fb
chore: fix typing with new highspy version (#795)
* fix(highs): pass uint8 integrality array to changeColsIntegrality
highspy's changeColsIntegrality expects var_types as a uint8 array
(matching HiGHS's uint8-backed HighsVarType enum). The persistent
update path already builds it as uint8 (_apply_var_types); align the
direct-solve path so it matches highspy's tightened type stubs and is
robust across versions.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(highs): silence assignment error on highspy lazy module
highspy is imported under TYPE_CHECKING, so mypy types `highspy` as the
module; assigning the `_LazyModule` shim then trips [assignment] once
highspy ships recognized types (highspy 1.13.1). Mirror the existing
gurobipy line with `# type: ignore[assignment]`.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2d47d4a commit 4ddf3fb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
1659 | | - | |
| 1659 | + | |
1660 | 1660 | | |
1661 | 1661 | | |
1662 | 1662 | | |
| |||
0 commit comments