Skip to content

Commit 8cdb58c

Browse files
committed
Fix type checking error in teststubgen.py
1 parent 568b3ff commit 8cdb58c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/test/teststubgen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ def test_infer_sig_from_docstring_unterminated_string_literal(self) -> None:
443443
This is an overloaded method.
444444
"""
445445
sigs = infer_sig_from_docstring(docstring, name="func")
446+
assert sigs is not None, "Expected two signatures"
446447
assert_equal(
447448
sigs[0], FunctionSig(name="func", args=[ArgSig(name="x", type="int")], ret_type="None")
448449
)
@@ -470,6 +471,7 @@ def test_infer_sig_from_docstring_latex(self) -> None:
470471
This is an overloaded method.
471472
"""
472473
sigs = infer_sig_from_docstring(docstring, name="func")
474+
assert sigs is not None, "Expected two signatures"
473475
assert_equal(
474476
sigs[0], FunctionSig(name="func", args=[ArgSig(name="x", type="int")], ret_type="None")
475477
)

0 commit comments

Comments
 (0)