mypy: Fix various errors caught by removing cache_with_key.

This commit is contained in:
Tim Abbott
2017-05-10 14:37:20 -07:00
parent e55b4b0d43
commit e8eaec0a18
4 changed files with 7 additions and 7 deletions

View File

@@ -688,7 +688,7 @@ def render_incoming_message(message, content, message_users, realm):
return rendered_content
def get_recipient_user_profiles(recipient, sender_id):
# type: (Recipient, Text) -> List[UserProfile]
# type: (Recipient, int) -> List[UserProfile]
if recipient.type == Recipient.PERSONAL:
recipients = list(set([get_user_profile_by_id(recipient.type_id),
get_user_profile_by_id(sender_id)]))