Skip to content

Commit

Permalink
config.py: get rid of mypy error
Browse files Browse the repository at this point in the history
error: Signature of "parse_known_args" incompatible with supertype "ArgumentParser"  [override]
  • Loading branch information
wferi committed Jul 17, 2024
1 parent 5acd718 commit 1d04b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bldr/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, *args: Any, **kwargs: Any):

super().__init__(*args, **kwargs)

def parse_known_args(self, args: Optional[Sequence[str]] = None, namespace: Optional[argparse.Namespace] = None) -> Tuple[argparse.Namespace, List[str]]:
def parse_known_args(self, args: Optional[Sequence[str]] = None, namespace=None):
if self.config_loader:
self.set_defaults_from_config(args)
return super().parse_known_args(args, namespace=None)
Expand Down

0 comments on commit 1d04b46

Please sign in to comment.