Skip to content

Commit 3e9ca37

Browse files
committed
type check
1 parent 3965677 commit 3e9ca37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/test/teststubtest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from typing import Any, Callable, Iterator
1313

1414
import mypy.stubtest
15-
from mypy import build
15+
from mypy import build, nodes
1616
from mypy.modulefinder import BuildSource
1717
from mypy.options import Options
1818
from mypy.stubtest import parse_options, test_stubs
@@ -2613,7 +2613,7 @@ def myfunction(arg: str, /) -> None: ...
26132613
"""
26142614
result = build_helper(source)
26152615
stub = result.files["__main__"].names["myfunction"].node
2616-
assert stub is not None
2616+
assert isinstance(stub, nodes.OverloadedFuncDef)
26172617
sig = mypy.stubtest.Signature.from_overloadedfuncdef(stub)
26182618
assert str(sig) == "def (arg: Union[builtins.int, builtins.str])"
26192619

0 commit comments

Comments
 (0)