Improve typing and drop the unused **kwargs in the KconfigCheck constructor
authorAlexander Popov <alex.popov@linux.com>
Mon, 13 May 2024 22:12:17 +0000 (01:12 +0300)
committerAlexander Popov <alex.popov@linux.com>
Mon, 13 May 2024 22:12:17 +0000 (01:12 +0300)
kernel_hardening_checker/engine.py

index 7195bc01e8050e96a8c7218f048f368f5e9568ed..0f187814a0dd3fda93f32a68d1e5b9eba12322aa 100644 (file)
@@ -133,8 +133,8 @@ class OptCheck:
 
 
 class KconfigCheck(OptCheck):
-    def __init__(self, *args, **kwargs) -> None:
-        super().__init__(*args, **kwargs)
+    def __init__(self, *args: str) -> None:
+        super().__init__(*args)
         self.name = f'CONFIG_{self.name}'
 
     @property