From c8c0ec575fdb9401712f5b6c2739c6f50a1dba51 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 16 Jan 2025 15:29:44 +0100 Subject: [PATCH] Fix type of second overload of find_rpm_gpgkey() 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mkosi/installer/rpm.py b/mkosi/installer/rpm.py index a50768a52..8aa966447 100644 --- a/mkosi/installer/rpm.py +++ b/mkosi/installer/rpm.py @@ -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]: ... -- 2.47.3