Используя Python 2.7 и PyCharm CE 2018.2.4, у меня есть следующий код:
from datetime import datetime as dt
def updateGroupDynamicBenchmark(self, security, group, runTime):
"""
Update all the fields in a group from BPipe
:param security: Security to update
:type security: Common.secMasterRecords.SecMasterRecord
:param group: Group id to update
:type group: Common.secMasterFieldPolicyMgr.SecMasterFieldGroup
:param runTime: Running time for the update
:type runTime: datetime.datetime
:return: New expiry time
:rtype: datetime.datetime
"""
return dt.now()
Этот код генерирует предупреждение, появляющееся в названии функции в объявлении:
Тип подсказки отсутствует для определения функции
Что можно сделать, чтобы это исправить? Большое спасибо