diff --git a/src/pyconverter/xml2py/ast_tree.py b/src/pyconverter/xml2py/ast_tree.py index cd8a0f29a..80a1c38f6 100644 --- a/src/pyconverter/xml2py/ast_tree.py +++ b/src/pyconverter/xml2py/ast_tree.py @@ -2358,7 +2358,11 @@ def _parse_list_entry(self): self._arguments.append(temp_args[initial_arg]) else: self._arguments.append( - Argument(initial_arg, self._initial_args, MISSING_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}")) + Argument( + initial_arg, + self._initial_args, + MISSING_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}"), + ) ) # description is missing is_additional_arg = False @@ -2371,7 +2375,9 @@ def _parse_list_entry(self): if is_additional_arg and "addional_command_arg" not in self.py_arg_names: self._arguments.append( Argument( - "addional_command_arg", self._initial_args, ADDITIONAL_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}") + "addional_command_arg", + self._initial_args, + ADDITIONAL_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}"), ) ) @@ -2393,7 +2399,11 @@ def __iadd__(self, argument_list): else: if initial_arg not in self.py_arg_names: self._arguments.append( - Argument(initial_arg, self._initial_args, MISSING_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}")) + Argument( + initial_arg, + self._initial_args, + MISSING_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}"), + ) ) is_additional_arg = False @@ -2406,7 +2416,9 @@ def __iadd__(self, argument_list): if is_additional_arg and "addional_command_arg" not in self.py_arg_names: self._arguments.append( Argument( - "addional_command_arg", self._initial_args, ADDITIONAL_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}") + "addional_command_arg", + self._initial_args, + ADDITIONAL_ARGUMENT_DESCRIPTION.replace("url", f"{self._url}"), ) ) @@ -2436,7 +2448,7 @@ def py_arg_names(self): @property def additional_args(self): return self._additional_args - + def remove_last_arg(self): self._arguments.pop()