From 7d8e8d5690ead4c66086ffde7676c5d9b3c1dabb Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 16 Jan 2024 07:24:32 +0300 Subject: [PATCH] Fix pylint E1101: Instance of 'OptCheck' has no 'type' member --- kernel_hardening_checker/engine.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel_hardening_checker/engine.py b/kernel_hardening_checker/engine.py index 4e4eee9..a810b98 100644 --- a/kernel_hardening_checker/engine.py +++ b/kernel_hardening_checker/engine.py @@ -57,6 +57,10 @@ class OptCheck: self.state = None self.result = None + @property + def type(self): + return None + def check(self): # handle the 'is present' check if self.expected == 'is present': -- 2.31.1