Commit 0fd676c
authored
π fix(installer): align with tox 4.59 API changes (#366)
The scheduled check has been red since tox 4.59 landed
(https://github.com/tox-dev/tox-uv/actions/runs/31787082911):
tox-dev/tox@7be33b8 widened `Pip._install_list_of_deps` to
`Sequence[Requirement | Package]`, so ty reports the narrower override
in `_installer.py` as incompatible, and `ToxEnv.name` now reads
`conf.get("env_name", str)`, so `test_get_python_abs_path_with_impl`
priming only `conf.__getitem__` hands a MagicMock to
`PythonSpec.from_string_spec`. Widen the override to `Package`, drop the
`ty: ignore[no-matching-overload]` that ty now flags as unused, and
patch `name` with a PropertyMock in the test the same way its neighbour
does, so it stays independent of how tox resolves the env name.1 parent 90b01d0 commit 0fd676c
3 files changed
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 148 | + | |
151 | 149 | | |
152 | 150 | | |
153 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
587 | 585 | | |
588 | 586 | | |
589 | 587 | | |
| |||
0 commit comments