Skip to content

Commit de789c8

Browse files
marc-hbpdgendt
authored andcommitted
manifest: fix mypy signature of _PatchedConfiguration.get()
This was the only --check-untyped-defs warning in manifest.py: easy win. Signed-off-by: Marc Herbert <[email protected]>
1 parent cc038b2 commit de789c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/west/manifest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,9 @@ def __init__(self, patch_dict, *args, **kwargs):
28542854
super().__init__(*args, **kwargs)
28552855
self.__patch_dict = patch_dict
28562856

2857-
def get(self, option, **kwargs):
2857+
def get(
2858+
self, option: str, default: str | None = None, configfile: ConfigFile = ConfigFile.ALL
2859+
) -> str | None:
28582860
if option in self.__patch_dict:
28592861
return self.__patch_dict[option]
2860-
return super().get(option, **kwargs)
2862+
return super().get(option, default, configfile)

0 commit comments

Comments
 (0)