Merge pull request #9803 from tk0miya/fix-flake8-error

Fix flake8 error
This commit is contained in:
Takeshi KOMIYA
2021-10-31 19:32:29 +09:00
committed by GitHub

View File

@@ -369,9 +369,10 @@ def is_suppressed_warning(type: str, subtype: str, suppress_warnings: List[str])
target, subtarget = warning_type, None
if target == type:
if (subtype is None and subtarget is None
or subtarget is None or
subtarget == subtype or subtarget == '*'):
if ((subtype is None and subtarget is None) or
subtarget is None or
subtarget == subtype or
subtarget == '*'):
return True
return False