Документирование типа возврата `tuple` в строке документации функции для хинтинга типа PyCharm
Как я могу документировать, что функция возвращаетtuple
таким образом, что PyCharm сможет использовать его для подсказок типа?
Придуманный пример:
def fetch_abbrev_customer_info(customer_id):
"""Pulls abbreviated customer data from the database for the Customer
with the specified PK value.
:type customer_id:int The ID of the Customer record to fetch.
:rtype:???
"""
... magic happens here ...
return customer_obj.fullname, customer_obj.status #, etc.