summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
diff options
context:
space:
mode:
authorDaniel Eades <danieleades@hotmail.com>2022-12-15 17:22:07 +0000
committerJean-François B <2589111+jfbu@users.noreply.github.com>2022-12-16 16:50:24 +0100
commit1abb24e309c8189eca2663f77c3a3aa866633e12 (patch)
treee74425a4c2647b8a5c6c7c980f00235fc12491b5 /sphinx/domains/cpp.py
parentdc29bf9abef764460ec5ec1c1571bddce9a4f7fa (diff)
downloadsphinx-git-1abb24e309c8189eca2663f77c3a3aa866633e12.tar.gz
remove blanket 'noqas'
Diffstat (limited to 'sphinx/domains/cpp.py')
-rw-r--r--sphinx/domains/cpp.py27
1 files changed, 18 insertions, 9 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py
index 7523a1e9f..b29e4bf39 100644
--- a/sphinx/domains/cpp.py
+++ b/sphinx/domains/cpp.py
@@ -4494,12 +4494,18 @@ class Symbol:
if Symbol.debug_lookup:
Symbol.debug_indent -= 2
- def _symbol_lookup(self, nestedName: ASTNestedName, templateDecls: List[Any],
- onMissingQualifiedSymbol: Callable[["Symbol", Union[ASTIdentifier, ASTOperator], Any, ASTTemplateArgs], "Symbol"], # NOQA
- strictTemplateParamArgLists: bool, ancestorLookupType: str,
- templateShorthand: bool, matchSelf: bool,
- recurseInAnon: bool, correctPrimaryTemplateArgs: bool,
- searchInSiblings: bool) -> SymbolLookupResult:
+ def _symbol_lookup(
+ self,
+ nestedName: ASTNestedName,
+ templateDecls: List[Any],
+ onMissingQualifiedSymbol: Callable[
+ ["Symbol", Union[ASTIdentifier, ASTOperator], Any, ASTTemplateArgs], "Symbol"
+ ],
+ strictTemplateParamArgLists: bool, ancestorLookupType: str,
+ templateShorthand: bool, matchSelf: bool,
+ recurseInAnon: bool, correctPrimaryTemplateArgs: bool,
+ searchInSiblings: bool
+ ) -> SymbolLookupResult:
# ancestorLookupType: if not None, specifies the target type of the lookup
if Symbol.debug_lookup:
Symbol.debug_indent += 1
@@ -4788,7 +4794,10 @@ class Symbol:
return makeCandSymbol()
else:
if Symbol.debug_lookup:
- Symbol.debug_print("no match, but fill an empty declaration, candSybmol is not None?:", candSymbol is not None) # NOQA
+ Symbol.debug_print(
+ "no match, but fill an empty declaration, candSybmol is not None?:",
+ candSymbol is not None,
+ )
Symbol.debug_indent -= 2
if candSymbol is not None:
candSymbol.remove()
@@ -7839,9 +7848,9 @@ class CPPDomain(Domain):
'enum': ObjType(_('enum'), 'enum', 'identifier', 'type'),
'enumerator': ObjType(_('enumerator'), 'enumerator', 'identifier'),
# generated object types
- 'functionParam': ObjType(_('function parameter'), 'identifier', 'member', 'var'), # noqa
+ 'functionParam': ObjType(_('function parameter'), 'identifier', 'member', 'var'), # noqa: E501
'templateParam': ObjType(_('template parameter'),
- 'identifier', 'class', 'struct', 'union', 'member', 'var', 'type'), # noqa
+ 'identifier', 'class', 'struct', 'union', 'member', 'var', 'type'), # noqa: E501
}
directives = {