Mathias Ettinger <mathias.ettin...@gmail.com> added the comment:

I was just hit by the very same issue and added the following test into 
`_get_action_name` to work around it:

    elif isinstance(argument, _SubParsersAction):
        return '{%s}' % ','.join(map(str, argument.choices))

I checked #9253 as referenced by paul j3 and like the `argument.name()` 
approach as well as it's less specific.

Any chance this can be addressed one way or another?

----------
nosy: +Mathias Ettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue29298>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to