Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

mypy: Fix payload_url.

Steve Howellfff2a81536d2
diff --git a/zerver/views/users.py b/zerver/views/users.py
index 46a3d3beb27..0e2f6addc8b 100644
--- a/zerver/views/users.py
+++ b/zerver/views/users.py
@@ -294,7 +294,7 @@ def add_bot_backend(
request: HttpRequest, user_profile: UserProfile,
full_name_raw: str=REQ("full_name"), short_name_raw: str=REQ("short_name"),
bot_type: int=REQ(validator=check_int, default=UserProfile.DEFAULT_BOT),
- payload_url: Optional[str]=REQ(validator=check_url, default=""),
+ payload_url: str=REQ(validator=check_url, default=""),
service_name: Optional[str]=REQ(default=None),
config_data: Dict[str, str]=REQ(default={},
validator=check_dict(value_validator=check_string)),