With PyCharm, type inference is based on the comments in docstring. def foo(x): """ :rtype: list of str """ return x def bar(x): a = foo(x) a[0].
確定! 回上一頁