Fix the pylint warning about isinstance
authorAlexander Popov <alex.popov@linux.com>
Wed, 8 Jun 2022 22:47:07 +0000 (01:47 +0300)
committerAlexander Popov <alex.popov@linux.com>
Wed, 8 Jun 2022 22:47:07 +0000 (01:47 +0300)
kconfig_hardened_check/__init__.py

index 0c58c0ca9e5b8443429b967fd37ec9ff93e51ce0..59fe71dc5e0ba0a7db2c0609cbf20383b1a5d919 100644 (file)
@@ -189,7 +189,7 @@ class ComplexOptCheck:
                'empty {} check'.format(self.__class__.__name__)
         assert(len(self.opts) != 1), \
                 'useless {} check: {}'.format(self.__class__.__name__, opts)
-        assert(isinstance(opts[0], KconfigCheck) or isinstance(opts[0], CmdlineCheck)), \
+        assert(isinstance(opts[0], (KconfigCheck, CmdlineCheck))), \
                'invalid {} check: {}'.format(self.__class__.__name__, opts)
         self.result = None