From a19dcdb52d3645eb51a792a240eca93d32fc2e8b Mon Sep 17 00:00:00 2001 From: Raf Blecher Date: Fri, 7 Jun 2019 16:55:01 -0700 Subject: [PATCH] Fix mypy tests for contextlib change in https://github.com/python/typeshed/pull/3083 --- test-data/unit/pythoneval.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-data/unit/pythoneval.test b/test-data/unit/pythoneval.test index 972d3361b66ba..465a3ef38f055 100644 --- a/test-data/unit/pythoneval.test +++ b/test-data/unit/pythoneval.test @@ -1030,8 +1030,8 @@ reveal_type(g) with f('') as s: reveal_type(s) [out] -_program.py:13: note: Revealed type is 'def (x: builtins.int) -> contextlib.GeneratorContextManager[builtins.str*]' -_program.py:14: note: Revealed type is 'def (*x: builtins.str) -> contextlib.GeneratorContextManager[builtins.int*]' +_program.py:13: note: Revealed type is 'def (x: builtins.int) -> contextlib._GeneratorContextManager[builtins.str*]' +_program.py:14: note: Revealed type is 'def (*x: builtins.str) -> contextlib._GeneratorContextManager[builtins.int*]' _program.py:16: error: Argument 1 to "f" has incompatible type "str"; expected "int" _program.py:17: note: Revealed type is 'builtins.str*'