Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mkosi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4721,7 +4721,7 @@ def create_argument_parser(chdir: bool = True) -> argparse.ArgumentParser:
last_section = s.section

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

group.add_argument( # type: ignore # needed by pyright
group.add_argument( # pyright: ignore
*opts,
dest=s.dest,
choices=s.choices,
Expand Down
Loading