get_raw_user_data: Support acting_user=None.

This already had support for web_public_guest, fixed mypy
annotation.
This commit is contained in:
Aman Agrawal
2020-09-23 17:15:17 +05:30
committed by Tim Abbott
parent c88b4cba60
commit 6012d3cff2

View File

@@ -441,7 +441,7 @@ def get_custom_profile_field_values(custom_profile_field_values:
}
return profiles_by_user_id
def get_raw_user_data(realm: Realm, acting_user: UserProfile, *, target_user: Optional[UserProfile]=None,
def get_raw_user_data(realm: Realm, acting_user: Optional[UserProfile], *, target_user: Optional[UserProfile]=None,
client_gravatar: bool, user_avatar_url_field_optional: bool,
include_custom_profile_fields: bool=True) -> Dict[int, Dict[str, str]]:
"""Fetches data about the target user(s) appropriate for sending to