fix(deps): bump typer-slim to match typer in uv.lock#169
Merged
Conversation
The lockfile pinned typer==0.24.1 alongside typer-slim==0.21.1, two versions that both ship into the `typer/` namespace and overwrite each other on install. When the install order leaves typer-slim's stale `_completion_shared.py` next to typer's new `core.py`, importing typer fails with ImportError: cannot import name 'HAS_SHELLINGHAM' from 'typer.core' which is what broke pre-commit (windows-latest, 3.11) on PR #168. Since typer-slim 0.22.0 it's been a meta-package that just depends on `typer` and ships no `typer/*.py` of its own, so upgrading typer-slim to 0.24.0 removes the conflict.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
typer-slimfrom0.21.1to0.24.0inuv.lock. The mismatch withtyper==0.24.1caused install-order-dependent file clobbering in sharedtyper/namespace, which manifested onpre-commit (windows-latest, 3.11)asImportError: cannot import name 'HAS_SHELLINGHAM' from 'typer.core'during pytest collection (see PR docs(readme): document OpenAI-compatible endpoint configuration #168 CI).typer-slim>=0.22.0is a meta-package that just depends ontyper(notyper/*.pyof its own), the namespace collision goes away.Test plan
pre-commit (windows-latest, 3.11)again — this is the failure mode the change fixes.uv syncfrom scratch installs cleanly,from cocoindex_code import clisucceeds, andtests/test_cli_helpers.py+tests/test_e2e.py(49 tests) pass on macOS / Python 3.14.4.