Skip to content

Commit e4dc4ea

Browse files
committed
config: switch to "pyright: ignore" comments were applicable
1 parent 25e76d1 commit e4dc4ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mkosi/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4721,7 +4721,7 @@ def create_argument_parser(chdir: bool = True) -> argparse.ArgumentParser:
47214721
last_section = s.section
47224722

47234723
if s.short and s.const is not None:
4724-
group.add_argument( # type: ignore # needed by pyright
4724+
group.add_argument( # pyright: ignore
47254725
s.short,
47264726
metavar="",
47274727
dest=s.dest,
@@ -4734,7 +4734,7 @@ def create_argument_parser(chdir: bool = True) -> argparse.ArgumentParser:
47344734
for long in [s.long, *s.compat_longs]:
47354735
opts = [s.short, long] if s.short and long == s.long and s.const is None else [long]
47364736

4737-
group.add_argument( # type: ignore # needed by pyright
4737+
group.add_argument( # pyright: ignore
47384738
*opts,
47394739
dest=s.dest,
47404740
choices=s.choices,

0 commit comments

Comments
 (0)