Skip to content

Commit

Permalink
Harden _parse_known_args signature for future API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Jan 4, 2025
1 parent ec737d7 commit 36428fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argcomplete/packages/_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class IntrospectiveArgumentParser(ArgumentParser):
except for the lines that contain the string "Added by argcomplete".
'''

def _parse_known_args(self, arg_strings, namespace, intermixed=False):
def _parse_known_args(self, arg_strings, namespace, intermixed=False, **kwargs):
_num_consumed_args.clear() # Added by argcomplete
self._argcomplete_namespace = namespace
self.active_actions: List[Action] = [] # Added by argcomplete
Expand Down

0 comments on commit 36428fd

Please sign in to comment.