From 00efbe9f6b4b349597efc794c9798c9d34f35fef Mon Sep 17 00:00:00 2001 From: Christoph Tyralla Date: Sun, 24 Nov 2024 08:39:08 +0100 Subject: [PATCH] Remove error message from `testErrorOutput`. --- mypyc/test-data/commandline.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mypyc/test-data/commandline.test b/mypyc/test-data/commandline.test index 672e879fbe1e..7c8c2d9d92c9 100644 --- a/mypyc/test-data/commandline.test +++ b/mypyc/test-data/commandline.test @@ -200,9 +200,9 @@ wtvr = next(i for i in range(10) if i == 5) d1 = {1: 2} -# Make sure we can produce an error when we hit the awful None case +# Since PR 18180, the following pattern should pose no problems anymore: def f(l: List[object]) -> None: - x = None # E: Local variable "x" has inferred type None; add an annotation + x = None for i in l: if x is None: x = i