💥 Make typer-slim a shallow wrapper around typer, always requiring rich and shellingham#1522
Merged
tiangolo merged 23 commits intofastapi:masterfrom Feb 11, 2026
Merged
💥 Make typer-slim a shallow wrapper around typer, always requiring rich and shellingham#1522tiangolo merged 23 commits intofastapi:masterfrom
typer-slim a shallow wrapper around typer, always requiring rich and shellingham#1522tiangolo merged 23 commits intofastapi:masterfrom
Conversation
7 tasks
svlandeg
commented
Feb 6, 2026
Contributor
svlandeg
commented
Feb 9, 2026
…e, make typer-slim a wrapper, without code
This comment was marked as resolved.
This comment was marked as resolved.
tiangolo
approved these changes
Feb 11, 2026
Member
tiangolo
left a comment
There was a problem hiding this comment.
Great, thank you! 🙌
The PDM hook and config logic is a bit cumbersome, strange, and hard to test. 😅
I added some tweaks for that:
- Tweak the PDM hook script and config in pyproject.toml to make
typer-slimdo not include any code and only depend ontyper(it was including the typer code intyper-slim) - Add a custom README for
typer-slimto tell users to not use it - Make
typer-slimandtyper-clidepend ontyper>={version}instead oftyper=={version}, so that we can remove all this stuff later at some point - Update the logic in the PDM hook and configs so that by default, even if we removed all that extra logic, it would build regular
typer, without needing any extra custom config - Update the test-redistribute in CI to only test for
typer
This will be available in Typer 0.22.0 in the next few hours. 🚀
7 tasks
musicinmybrain
added a commit
to musicinmybrain/jaraco.text
that referenced
this pull request
Feb 12, 2026
Upstream has deprecated `typer-slim`, and it’s now just a shallow wrapper around `typer`. See fastapi/typer#1522, https://github.com/fastapi/typer/blob/0.23.0/docs/release-notes.md#0220.
musicinmybrain
added a commit
to musicinmybrain/openneuro-py
that referenced
this pull request
Feb 12, 2026
Upstream has deprecated `typer-slim`, and it’s now just a shallow wrapper around `typer`. See fastapi/typer#1522, https://github.com/fastapi/typer/blob/0.23.0/docs/release-notes.md#0220.
This was referenced Feb 12, 2026
ryand56
added a commit
to ryand56/nixpkgs
that referenced
this pull request
Feb 14, 2026
ryand56
added a commit
to ryand56/nixpkgs
that referenced
this pull request
Feb 14, 2026
shanjiaz
pushed a commit
to vllm-project/speculators
that referenced
this pull request
Feb 17, 2026
Hi! Just a quick heads-up that we've removed support for `typer-slim`. From v0.22.0 onwards, `typer-slim` will be the same as `typer`, with external requirements `shellingham` and `rich` installed by default, see fastapi/typer#1522. I saw that `rich` is already an external dependency of this library so this should have little influence. `huggingface-hub` has also switched to using `typer` instead of `typer-slim`. Let me know if you have any questions/concerns! Signed-off-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
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.
From a recent survey we've run on Typer, we've learned that less than 5% of users specifically use
typer-slim. We had originally introduced this package to provide users the option to not installshellingham&rich. However, even with these two packages, thetyperlibrary is still pretty small (25Mb) and the code base is more complex by having to cater for custom logic whether or notRichis present or not. Additionally, we've run into issues (#1503) with publishingtyperandtyper-slimfrom the same codebase, so we can't keep the current situation. All of this has resulted in the conclusion to drop support fortyper-slim. It will just be a shallow wrapper aroundtyper.We are aware that some users do not prefer some of the Rich formatting, and we'll look into options of customizing this further in the future. For now, there is always the option of setting
Typer(rich_markup_mode=None)for each app, or setting a global environment variableTYPER_USE_RICHtoFalseto disable any Rich formatting.I've built the wheel locally (with
TIANGOLO_BUILD_PACKAGE="typer-slim") and installed it in a clean venv, and got:WIP