From: Daan De Meyer Date: Thu, 5 Sep 2024 12:30:03 +0000 (+0200) Subject: Annotate two more variables that need it X-Git-Tag: v25~314^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca7021e9a7fc2d744bc0bc8ad93763bca4c33276;p=thirdparty%2Fmkosi.git Annotate two more variables that need it --- diff --git a/mkosi/config.py b/mkosi/config.py index b2b2f1ea6..71adc9e61 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -3358,7 +3358,7 @@ def create_argument_parser(chdir: bool = True) -> argparse.ArgumentParser: help=argparse.SUPPRESS, ) - last_section = None + last_section: Optional[str] = None for s in SETTINGS: if s.section != last_section: diff --git a/mkosi/partition.py b/mkosi/partition.py index 4faa12c10..41d243f50 100644 --- a/mkosi/partition.py +++ b/mkosi/partition.py @@ -43,7 +43,8 @@ def find_partitions(image: Path, *, sandbox: SandboxProtocol = nosandbox) -> lis def finalize_roothash(partitions: Sequence[Partition]) -> Optional[str]: - roothash = usrhash = None + roothash: Optional[str] = None + usrhash: Optional[str] = None for p in partitions: if (h := p.roothash) is None: