We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3965677 commit 3e9ca37Copy full SHA for 3e9ca37
mypy/test/teststubtest.py
@@ -12,7 +12,7 @@
12
from typing import Any, Callable, Iterator
13
14
import mypy.stubtest
15
-from mypy import build
+from mypy import build, nodes
16
from mypy.modulefinder import BuildSource
17
from mypy.options import Options
18
from mypy.stubtest import parse_options, test_stubs
@@ -2613,7 +2613,7 @@ def myfunction(arg: str, /) -> None: ...
2613
"""
2614
result = build_helper(source)
2615
stub = result.files["__main__"].names["myfunction"].node
2616
- assert stub is not None
+ assert isinstance(stub, nodes.OverloadedFuncDef)
2617
sig = mypy.stubtest.Signature.from_overloadedfuncdef(stub)
2618
assert str(sig) == "def (arg: Union[builtins.int, builtins.str])"
2619
0 commit comments