fixed PY-7085 Specify type for reference using annotation: missing intention for specifying annotation for return values

This commit is contained in:
Ekaterina Tuzova
2012-08-01 17:34:11 +04:00
parent aa77742a86
commit 655b8f5913
4 changed files with 67 additions and 5 deletions
@@ -0,0 +1,7 @@
def g(x) -> object:
return x
def f(x):
y = g(x.keys())
return y.startswith('foo')
@@ -0,0 +1,7 @@
def g(x):
return x
def f(x):
y = g(x.keys())
return y<caret>.startswith('foo')