In Pycharm, I want to have a document function that returns a tuple so that I can get code completion. Comment style is Google style.
This one works correctly:
def func(): """ Returns: str: something """ pass
Input func(). correctly shows methods for str .
However, typing this does not work :
def func(): """ Returns: (int, str): something """ pass a, b = func()
Enter b. offers nothing.
I know PyCharm is capable of handling tuples because this code works :
def func(): """ :rtype: (int, str) """ pass a, b = func()
However, this is not consistent with the style of Google.
How can I document a function in accordance with the standard so that Pycharm selects return types?
source share