argparse: when wrong choice is selected, the error message prints available choices using repr()
instead of str()
#118839
Labels
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
I tried using StrEnum for choices and it printed
choose from <Enum.FOO: 'foo'>, ...
instead ofchoose from foo, ....
.Fix in #117766
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: