Skip to content

Commit

Permalink
Fix issue #507 (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
eggry authored Oct 6, 2024
1 parent e836d36 commit 98f551f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions argcomplete/packages/_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def take_action(action, argument_strings, option_string=None):
def consume_optional(start_index):
# get the optional identified at this index
option_tuple = option_string_indices[start_index]
if isinstance(option_tuple, list): # Python 3.12.7+
option_tuple = option_tuple[0]
if len(option_tuple) == 3:
action, option_string, explicit_arg = option_tuple
else: # Python 3.11.9+, 3.12.3+, 3.13+
Expand Down

0 comments on commit 98f551f

Please sign in to comment.