Any string from environment variable casts to True
, even "false"
#1238
-
First Check
Commit to Help
Example CodeMRE repo: https://github.com/MartinBernstorff/typer-false-envvar-repro DescriptionI would expect an envvar with value Operating SystemmacOS Operating System DetailsNo response Typer Version0.16.0 Python VersionTested with 3.13, 3.12, 3.11 Additional ContextThanks a ton for the work you guys do! Love Typer; hope this MRE is easy to follow. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
-
Thanks for the report! Are you using Click 8.2.0 or higher? Do you see the same behaviour if you would downgrade to |
Beta Was this translation helpful? Give feedback.
-
While I can confirm the bug, it also happens with pure Click code, and it was thoroughly investigated there. It's likely that the next Click release (probably 8.3.0) will fix this. |
Beta Was this translation helpful? Give feedback.
While I can confirm the bug, it also happens with pure Click code, and it was thoroughly investigated there. It's likely that the next Click release (probably 8.3.0) will fix this.