Lucas Cimon <[email protected]> added the comment:
Sorry, the fix was by Mathias Ettinger:
elif isinstance(argument, _SubParsersAction):
return '{%s}' % ','.join(map(str, argument.choices))
I submitted a PR with this patch and a corresponding unit test:
https://github.com/python/cpython/pull/26278
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33109>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com