mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
mypy: Final small migrations to python3.5 annotations in many files.
This commit is contained in:
committed by
Tim Abbott
parent
34db2e59dd
commit
9e1dbde82d
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user