From 8ae838c5c8df31fcf1937d047a1c17cc9df21089 Mon Sep 17 00:00:00 2001 From: Zixuan James Li Date: Fri, 22 Jul 2022 18:47:30 -0400 Subject: [PATCH] users: Remove default values for add_service. These default values are unused by the callers and incompatible with the `Service` model. Signed-off-by: Zixuan James Li --- zerver/lib/users.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zerver/lib/users.py b/zerver/lib/users.py index 7a9552891b..8a81d4f792 100644 --- a/zerver/lib/users.py +++ b/zerver/lib/users.py @@ -126,9 +126,9 @@ def check_valid_bot_config(bot_type: int, service_name: str, config_data: Dict[s def add_service( name: str, user_profile: UserProfile, - base_url: Optional[str] = None, - interface: Optional[int] = None, - token: Optional[str] = None, + base_url: str, + interface: int, + token: str, ) -> None: Service.objects.create( name=name, user_profile=user_profile, base_url=base_url, interface=interface, token=token