mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
#10680: fix mutually exclusive arguments in argument groups.
This commit is contained in:
parent
d2f3857c40
commit
0f6b47a338
3 changed files with 44 additions and 0 deletions
|
@ -1495,6 +1495,7 @@ class _ArgumentGroup(_ActionsContainer):
|
|||
self._defaults = container._defaults
|
||||
self._has_negative_number_optionals = \
|
||||
container._has_negative_number_optionals
|
||||
self._mutually_exclusive_groups = container._mutually_exclusive_groups
|
||||
|
||||
def _add_action(self, action):
|
||||
action = super(_ArgumentGroup, self)._add_action(action)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue