Skip to content

fix: respect TYPER_USE_RICH in completion help text (fixes #1643)#1818

Closed
mshzy wants to merge 1 commit into
fastapi:masterfrom
mshzy:fix/rich-env-respect
Closed

fix: respect TYPER_USE_RICH in completion help text (fixes #1643)#1818
mshzy wants to merge 1 commit into
fastapi:masterfrom
mshzy:fix/rich-env-respect

Conversation

@mshzy
Copy link
Copy Markdown

@mshzy mshzy commented Jun 2, 2026

Fixes #1643: _sanitize_help_text now checks TYPER_USE_RICH env var

_sanitize_help_text checked if Rich is installed but ignored the
TYPER_USE_RICH=false environment variable. When users disable Rich,
the completion system would still try to import and use it.

Fixes fastapi#1643.
Copy link
Copy Markdown
Member

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1643 is a PR. Usually you use "fixes XXX" when XXX is an issue or a discussion.

If there's already a PR, please provide more information on why the existing solution is not adequate. You can do so by leaving a review on that PR. I'll close this one to avoid duplicate threads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants