Skip to content

Commit

Permalink
Try to fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Feb 2, 2025
1 parent 30bdf2b commit ec37bff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pydoctor/epydoc/markup/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _parse_tokens(self) -> nodes.document:
converted_token: nodes.Node | list[nodes.Node]

if type_ is TokenType.ANY:
assert isinstance(token, nodes.Inline)
assert isinstance(token, nodes.Node)
converted_token = token
else:
assert isinstance(token, str)
Expand Down
2 changes: 1 addition & 1 deletion pydoctor/test/test_epydoc2stan.py
Original file line number Diff line number Diff line change
Expand Up @@ -2197,7 +2197,7 @@ def __init__(self):
assert capsys.readouterr().out == ('<test>:16: Existing docstring at line 10 is overriden\n'
'<test>:10: Cannot find link target for "bool"\n')

def test_numpydoc_warns_about_unknown_types_in_attribute_section_file(capsys: CapSys):
def test_numpydoc_warns_about_unknown_types_in_attribute_section_file(capsys: CapSys) -> None:
system = processPackage('numpy/_machar.py',
lambda: model.System(model.Options.from_args('-q')))

Expand Down

0 comments on commit ec37bff

Please sign in to comment.