Bug: Rich help doesn't respect environment variable TYPER_USE_RICH during tab completion. #1642
Unanswered
albin-paul-saju
asked this question in
Questions
Replies: 2 comments
-
|
Thanks for the note - that does look like a bug and I'll look into it! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@svlandeg I have created a PR for this. Could you please review this? Thanks for the response. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I wanted to make typer import time very fast for tab completions around 250ms.
So I replaced rich with a dummy module by overloading
importlib.machinery.ModuleSpec.And made sure that rich is not at imported at all when I set TYPER_USE_RICH="false".
This environment variable is not considered at code.
So I had to monkey patch find_spec.
Please consider the variable there.
Operating System
Linux
Operating System Details
No response
Typer Version
0.24.1
Python Version
Python 3.12.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions