Fix a flake8 warning

This commit is contained in:
Takeshi KOMIYA 2021-10-31 16:07:46 +09:00
parent c497a2867a
commit 524c99afef

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