]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix type of second overload of find_rpm_gpgkey()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 16 Jan 2025 14:29:44 +0000 (15:29 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 16 Jan 2025 14:31:58 +0000 (15:31 +0100)
The return type is optional when we get any boolean that's not a
literal True, so widen the type to bool to fix that.

mkosi/installer/rpm.py

index a50768a5228b9fa41b1b643d4341de44082397a6..8aa966447bc3b6502f812e39bfa9e7f149510219 100644 (file)
@@ -36,7 +36,11 @@ def find_rpm_gpgkey(
 
 @overload
 def find_rpm_gpgkey(
-    context: Context, key: str, fallback: Optional[str] = None, *, required: Literal[False]
+    context: Context,
+    key: str,
+    fallback: Optional[str] = None,
+    *,
+    required: bool,
 ) -> Optional[str]: ...