[issue41024] doc: Explicitly mention use of 'enum.Enum' as a valid container for 'choices' argument of 'argparse.ArgumentParser.add_argument'
Change by vincent-ferotin : -- keywords: +patch pull_requests: +20142 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20964 ___ Python tracker <https://bugs.python.org/issu
[issue41024] doc: Explicitly mention use of 'enum.Enum' as a valid container for 'choices' argument of 'argparse.ArgumentParser.add_argument'
New submission from vincent-ferotin : It is currently not obvious, reading :mod:`argparse` documentation, that :meth:`argparse.ArgumentParser.add_argument` could accept as 'choices' parameter an :class:`enum.Enum`. However, it seems (at least to me) that this 'choices'