From 8645baf55318186ae5139232b6a76240d8826606 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Thu, 26 Feb 2026 15:40:35 +0000 Subject: [PATCH] Conformance tests: change another empty body to `raise NotImplementedError` 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 --- conformance/tests/generics_paramspec_basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conformance/tests/generics_paramspec_basic.py b/conformance/tests/generics_paramspec_basic.py index 7d461c2f..e2c62258 100644 --- a/conformance/tests/generics_paramspec_basic.py +++ b/conformance/tests/generics_paramspec_basic.py @@ -21,7 +21,7 @@ def func1(x: P) -> P: # E - ... + raise NotImplementedError def func2(x: Concatenate[int, P]) -> int: # E