From: Jörg Behrmann Date: Sat, 10 Jan 2026 12:32:54 +0000 (+0100) Subject: Remove unused type ignore statements X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e098d7bfad3f244f4ca6967ff942ac5742b9e255;p=thirdparty%2Fmkosi.git Remove unused type ignore statements --- diff --git a/mkosi/completion.py b/mkosi/completion.py index d35418e2c..398edb2ca 100644 --- a/mkosi/completion.py +++ b/mkosi/completion.py @@ -30,8 +30,8 @@ class CompGen(StrEnum): # TODO: the type of action.type is Union[Callable[[str], Any], FileType] # the type of Path is type, but Path also works in this position, # because the constructor is a callable from str -> Path - elif action.type is not None and (isinstance(action.type, type) and issubclass(action.type, Path)): # type: ignore - if isinstance(action.default, Path) and action.default.is_dir(): # type: ignore + elif action.type is not None and (isinstance(action.type, type) and issubclass(action.type, Path)): + if isinstance(action.default, Path) and action.default.is_dir(): return CompGen.dirs else: return CompGen.files