From: Alexander Popov Date: Wed, 8 Jun 2022 22:47:07 +0000 (+0300) Subject: Fix the pylint warning about isinstance X-Git-Tag: v0.6.1~141 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=58cc1a05b44da059ceb488eee0b2d3c362cace31;p=kconfig-hardened-check.git Fix the pylint warning about isinstance --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index 0c58c0c..59fe71d 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -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