From 107eaf6c3c5c04494d2450eb47eacada39dfed88 Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Fri, 20 Oct 2017 13:26:15 +0100 Subject: [PATCH] Fix test failures caused by merging of #4059 --- test-data/unit/check-inference.test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test-data/unit/check-inference.test b/test-data/unit/check-inference.test index 66f83fbd17ff2..a904cacd57ad2 100644 --- a/test-data/unit/check-inference.test +++ b/test-data/unit/check-inference.test @@ -421,7 +421,7 @@ a = None # type: A def ff() -> None: x = f() # E: Need type annotation for variable - reveal_type(x) + reveal_type(x) # E: Revealed type is 'Any' g(None) # Ok f() # Ok because not used to infer local variable type @@ -1953,7 +1953,7 @@ T = TypeVar('T') def f() -> T: pass class C: - x = f() + x = f() # E: Need type annotation for variable def m(self) -> str: return 42 # E: Incompatible return value type (got "int", expected "str") @@ -1970,7 +1970,7 @@ T = TypeVar('T') def f(x: Optional[T] = None) -> T: pass class C: - x = f() + x = f() # E: Need type annotation for variable def m(self) -> str: return 42 # E: Incompatible return value type (got "int", expected "str") @@ -1986,7 +1986,7 @@ T = TypeVar('T') def f(x: List[T]) -> T: pass class C: - x = f([]) + x = f([]) # E: Need type annotation for variable def m(self) -> str: return 42 # E: Incompatible return value type (got "int", expected "str")