mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix a flake8 warning
This commit is contained in:
parent
c497a2867a
commit
524c99afef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user