Skip to content

Commit 6838a5f

Browse files
authored
Conformance tests: change another empty body to raise NotImplementedError (#2197)
ty emits an error on this line but for the wrong reason (due to the fact that it implicitly returns `None`, which contradicts the return annotation), so the test is showing up as passing for us when it actually shouldn't
1 parent e122f69 commit 6838a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conformance/tests/generics_paramspec_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
def func1(x: P) -> P: # E
24-
...
24+
raise NotImplementedError
2525

2626

2727
def func2(x: Concatenate[int, P]) -> int: # E

0 commit comments

Comments
 (0)