Skip to content

gh-148468: Accept string-like help proxies in argparse#150276

Open
RaghunandanKumar wants to merge 1 commit into
python:mainfrom
RaghunandanKumar:fix-argparse-string-like-help
Open

gh-148468: Accept string-like help proxies in argparse#150276
RaghunandanKumar wants to merge 1 commit into
python:mainfrom
RaghunandanKumar:fix-argparse-string-like-help

Conversation

@RaghunandanKumar
Copy link
Copy Markdown

Summary

  • restore support for string-like proxy objects in colorized argparse descriptions, epilogs, and argument help text
  • normalize formatter text at the string-formatting boundary instead of assuming concrete str objects
  • add regression coverage for proxied descriptions, epilogs, and interpolated help text

Issue

Testing

  • ./python.exe -m test test_argparse
  • runtime repro with a minimal LazyStr proxy and parser.format_help()

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant