Skip to content

Commit 38f1b22

Browse files
committed
Add a test for something that was previously failing
1 parent b23a471 commit 38f1b22

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

crates/zuban_python/tests/mypylike/tests/signatures.test

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,20 @@ __main__.py:8:call signatures:
114114
- "(ä𐍈ä: int, yz: int) -> None", valid with params: true, on nth param: Some(0); param offsets: ["(1, 9)", "(16, 18)"]
115115
__main__.py:10:call signatures:
116116
- "(ä𐍈ä: int, yz: int) -> None", valid with params: true, on nth param: Some(1); param offsets: ["(1, 9)", "(16, 18)"]
117+
118+
[case signatures_for_invalid_code]
119+
# flags: --no-typecheck
120+
import sys
121+
122+
def foo(xyz) -> None: ...
123+
124+
#? signatures
125+
foo(sys.path
126+
def breaker(): ...
127+
#? signatures
128+
foo(xyz=
129+
[out]
130+
__main__.py:7:call signatures:
131+
- "(xyz: Any) -> None", valid with params: true, on nth param: Some(0)
132+
__main__.py:10:call signatures:
133+
- "(xyz: Any) -> None", valid with params: true, on nth param: Some(0)

0 commit comments

Comments
 (0)