return type not specific enough for a specific case
yinwang0 opened this issue · comments
Yin Wang commented
http://github.com/opdemand/deis/symbols/python/cm/chef_api/ChefAPI/request
The return type of the function (in picture) should contain str
as its first tuple component, because resp.read()
has type (HTTPResponse, None)->str. But this information was somehow lost.
Tried to write a small reproducer but couldn't reproduce the same problem:
class A:
def f():
return 1
def g():
x = A()
return x.f(), "hi"
Yin Wang commented