mypy: Final small migrations to python3.5 annotations in many files.

This commit is contained in:
neiljp (Neil Pilgrim)
2018-03-12 01:47:49 +00:00
committed by Tim Abbott
parent 34db2e59dd
commit 9e1dbde82d
11 changed files with 32 additions and 42 deletions

View File

@@ -64,8 +64,7 @@ def sent_time_in_epoch_seconds(user_message: Optional[UserMessage]) -> Optional[
# Return the epoch seconds in UTC.
return calendar.timegm(user_message.message.pub_date.utctimetuple())
def get_bot_types(user_profile):
# type: (UserProfile) -> List[Dict[Text, object]]
def get_bot_types(user_profile: UserProfile) -> List[Dict[Text, object]]:
bot_types = []
for type_id, name in UserProfile.BOT_TYPES.items():
bot_types.append({