]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Remove unused type ignore statements
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Sat, 10 Jan 2026 12:32:54 +0000 (13:32 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Sat, 10 Jan 2026 12:32:54 +0000 (13:32 +0100)
mkosi/completion.py

index d35418e2c03d91154393e2de4b77527519511a35..398edb2ca2a0e25bc745de38a25bc33f41474905 100644 (file)
@@ -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