Skip to content

Commit 9d10fcd

Browse files
authored
Fix test failures caused by merging of #4059 (#4138)
1 parent 2dbeaf7 commit 9d10fcd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test-data/unit/check-inference.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ a = None # type: A
421421

422422
def ff() -> None:
423423
x = f() # E: Need type annotation for variable
424-
reveal_type(x)
424+
reveal_type(x) # E: Revealed type is 'Any'
425425

426426
g(None) # Ok
427427
f() # Ok because not used to infer local variable type
@@ -1953,7 +1953,7 @@ T = TypeVar('T')
19531953
def f() -> T: pass
19541954

19551955
class C:
1956-
x = f()
1956+
x = f() # E: Need type annotation for variable
19571957
def m(self) -> str:
19581958
return 42 # E: Incompatible return value type (got "int", expected "str")
19591959

@@ -1970,7 +1970,7 @@ T = TypeVar('T')
19701970
def f(x: Optional[T] = None) -> T: pass
19711971

19721972
class C:
1973-
x = f()
1973+
x = f() # E: Need type annotation for variable
19741974
def m(self) -> str:
19751975
return 42 # E: Incompatible return value type (got "int", expected "str")
19761976

@@ -1986,7 +1986,7 @@ T = TypeVar('T')
19861986
def f(x: List[T]) -> T: pass
19871987

19881988
class C:
1989-
x = f([])
1989+
x = f([]) # E: Need type annotation for variable
19901990
def m(self) -> str:
19911991
return 42 # E: Incompatible return value type (got "int", expected "str")
19921992

0 commit comments

Comments
 (0)