Skip to content

Commit

Permalink
mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobandersen committed Feb 12, 2021
1 parent a7fcc15 commit e46779e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx/domains/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -3478,7 +3478,7 @@ def _render_symbol(self, s: Symbol, maxdepth: int, skipThis: bool,

if recurse:
if skipThis:
childContainer = nodes
childContainer = nodes # type: Union[List[Node], addnodes.desc]
else:
content = addnodes.desc_content()
desc = addnodes.desc()
Expand Down
2 changes: 1 addition & 1 deletion sphinx/domains/cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -7089,7 +7089,7 @@ def _render_symbol(self, s: Symbol, maxdepth: int, skipThis: bool,

if recurse:
if skipThis:
childContainer = nodes
childContainer = nodes # type: Union[List[Node], addnodes.desc]
else:
content = addnodes.desc_content()
desc = addnodes.desc()
Expand Down

0 comments on commit e46779e

Please sign in to comment.