mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9803 from tk0miya/fix-flake8-error
Fix flake8 error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user