mirror of https://github.com/zulip/zulip.git
mypy: Amend tos_version parameter of create_user_profile to be Optional.
tos_version is marked as Optional[Text] in UserProfile & is Optional in other places within zerver/lib/create_user.py
This commit is contained in:
parent
560425929e
commit
d01dcbd018
|
@ -24,7 +24,7 @@ def random_api_key() -> Text:
|
|||
def create_user_profile(realm: Realm, email: Text, password: Optional[Text],
|
||||
active: bool, bot_type: Optional[int], full_name: Text,
|
||||
short_name: Text, bot_owner: Optional[UserProfile],
|
||||
is_mirror_dummy: bool, tos_version: Text,
|
||||
is_mirror_dummy: bool, tos_version: Optional[Text],
|
||||
timezone: Optional[Text],
|
||||
tutorial_status: Optional[Text] = UserProfile.TUTORIAL_WAITING,
|
||||
enter_sends: bool = False) -> UserProfile:
|
||||
|
|
Loading…
Reference in New Issue