Repository navigation
Bump the python-packages group with 7 updates, plus fixes for gradio 7 and ty 0.0.99 - #709
invisiblefix-bot wants to merge 2 commits into
Conversation
Bumps the python-packages group with 7 updates: | Package | From | To | | --- | --- | --- | | [pillow](https://github.com/python-pillow/Pillow) | `12.3.0` | `13.0.0` | | [tyro](https://github.com/brentyi/tyro) | `1.0.16` | `1.0.17` | | [gradio](https://github.com/gradio-app/gradio) | `6.31.0` | `7.0.0.dev0` | | [ruff](https://github.com/astral-sh/ruff) | `0.17.3` | `0.17.4` | | [ty](https://github.com/astral-sh/ty) | `0.0.95` | `0.0.99` | | [ipython](https://github.com/ipython/ipython) | `9.18.0` | `9.18.1` | | [pip](https://github.com/pypa/pip) | `26.2.2` | `26.3` | Updates `pillow` from 12.3.0 to 13.0.0 - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](python-pillow/Pillow@12.3.0...13.0.0) Updates `tyro` from 1.0.16 to 1.0.17 - [Release notes](https://github.com/brentyi/tyro/releases) - [Commits](brentyi/tyro@v1.0.16...v1.0.17) Updates `gradio` from 6.31.0 to 7.0.0.dev0 - [Release notes](https://github.com/gradio-app/gradio/releases) - [Changelog](https://github.com/gradio-app/gradio/blob/main/CHANGELOG.md) - [Commits](https://github.com/gradio-app/gradio/compare/gradio@6.31.0...gradio@7.0.0-dev.0) Updates `ruff` from 0.17.3 to 0.17.4 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.17.3...0.17.4) Updates `ty` from 0.0.95 to 0.0.99 - [Release notes](https://github.com/astral-sh/ty/releases) - [Changelog](https://github.com/astral-sh/ty/blob/main/CHANGELOG.md) - [Commits](astral-sh/ty@0.0.95...0.0.99) Updates `ipython` from 9.18.0 to 9.18.1 - [Release notes](https://github.com/ipython/ipython/releases) - [Commits](ipython/ipython@9.18.0...9.18.1) Updates `pip` from 26.2.2 to 26.3 - [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst) - [Commits](pypa/pip@26.2.2...26.3) --- updated-dependencies: - dependency-name: pillow dependency-version: 13.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: tyro dependency-version: 1.0.17 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: gradio dependency-version: 7.0.0.dev0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: ruff dependency-version: 0.17.4 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: ty dependency-version: 0.0.99 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: ipython dependency-version: 9.18.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pip dependency-version: '26.3' dependency-type: direct:development update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com>
gradio 7, gradio-client 2.8 and safehttpx 0.2 depend on httpx2 instead of httpx, so httpx is no longer installed transitively and tests/test_preset_utils.py, which imports it to build fake huggingface_hub errors, fails at collection. Declare httpx in the tests dependency group and lock it (httpx 0.28.1 + httpcore 1.0.9, the versions previously locked). ty 0.0.99 reports three new errors. Widen the return annotation of _metadata_batch_conflicts to include the "absent" str key it already returns, and silence two numpy-stub false positives with the repo's usual `# ty: ignore[unsupported-operator]`. No runtime behaviour changes.
|
No actionable comments were generated in the recent review. WalkthroughThe pull request updates Ruff and ty versions and adds httpx to the test dependencies. It also widens a metadata conflict mapping return type and adds a type-checker suppression to a coordinate-difference expression. The partial-sum accumulation statement is unchanged. Suggested reviewers: Merge Risk:
|
Supersedes #708. It carries the same Dependabot update (gradio 6.31.0 → 7.0.0.dev0, gradio-client 2.7.2 → 2.8.0.dev0, safehttpx 0.1.7 → 0.2.0, pillow 12.3.0 → 13.0.0, tyro 1.0.16 → 1.0.17, ruff 0.17.3 → 0.17.4, ty 0.0.95 → 0.0.99, ipython 9.18.0 → 9.18.1, pip 26.2.2 → 26.3) plus one fix commit on top, so #708 can be closed if this is merged.
Root cause
httpx2instead ofhttpx, sohttpxis no longer installed.tests/test_preset_utils.pyimports it to build fakehuggingface_huberrors, so pytest fails at collection (ModuleNotFoundError: No module named 'httpx') intests,heavy-testsand everynotebook-testsjob.invalid-return-typeinzea/data/dataloader.pyandunsupported-operatorinzea/data/file_operations.pyandzea/models/ultrapips.py.Fix
pyproject.toml: add"httpx>=0.28.1"to thetestsgroup. Only the tests import httpx, so the runtime dependencies stay the same.uv lockadds just httpx 0.28.1 and httpcore 1.0.9, the versionsmainalready locks._metadata_batch_conflicts: the return annotation becomesdict[str, dict[tuple | str, list[str]]], because the function already returns an"absent"string key, as its docstring says.# ty: ignore[unsupported-operator].No changelog entry, because users won't notice the change. This needs the same
devlabel as #708.Evidence (
pytest -m 'not heavy and not notebook' ./tests, as in thetestsjob; Ubuntu 22.04, Python 3.12.16,uv sync --frozen --group dev --group jax-cpu --group torch-cpu --group tf-cpu)ba022cd4ba022cd48c564d7a8c564d7a7497d2b07497d2b0Head collects 3710 tests and errors on
tests/test_preset_utils.py(127 tests), so pytest aborts and no test runs. With the fix, the same 3837 test IDs are collected as onmain(identical--collect-onlylists).ruff check,ruff format --checkand pre-commit pass.Fix commit: 7497d2b0
On the bot fork, the
tests, lint, package and docs jobs pass (run). Theheavy-testsand notebook jobs need your self-hosted runners, so they could not run there.