Skip to content

Commit

Permalink
fix: add missed line
Browse files Browse the repository at this point in the history
  • Loading branch information
neithere committed Oct 12, 2023
1 parent 7ba3bf2 commit f993ca8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/argh/assembling.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ def _merge_inferred_and_declared_args(

# arguments declared via @arg decorator
for declared_spec in declared_args:
parser_add_argument_spec = declared_spec
func_arg_name = parser_add_argument_spec.func_arg_name

if func_arg_name in specs_by_func_arg_name:
Expand Down
6 changes: 4 additions & 2 deletions src/argh/dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Data transfer objects for internal usage.
"""
from dataclasses import dataclass, field
from typing import Any, Callable, Dict, List, Optional, Union, Type
from typing import Any, Callable, Dict, List, Optional, Type, Union


class NotDefined:
Expand Down Expand Up @@ -63,7 +63,9 @@ def get_all_kwargs(self) -> Dict[str, Any]:
return dict(kwargs, **self.other_add_parser_kwargs)

@classmethod
def make_from_kwargs(cls, func_arg_name, cli_arg_names, parser_add_argument_kwargs: Dict[str, Any]) -> "ParserAddArgumentSpec":
def make_from_kwargs(
cls, func_arg_name, cli_arg_names, parser_add_argument_kwargs: Dict[str, Any]
) -> "ParserAddArgumentSpec":
"""
Constructs and returns a `ParserAddArgumentSpec` instance
according to keyword arguments according to the
Expand Down

0 comments on commit f993ca8

Please sign in to comment.