mirror of https://github.com/zulip/zulip.git
integrations: Fix wrong type annotation.
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
parent
db7a6d15dc
commit
0bedf0cf22
|
@ -428,6 +428,7 @@ class OurAuthenticationForm(AuthenticationForm):
|
|||
password = self.cleaned_data.get("password")
|
||||
|
||||
if username is not None and password:
|
||||
assert self.request is not None
|
||||
subdomain = get_subdomain(self.request)
|
||||
realm = get_realm(subdomain)
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ def send_webhook_fixture_message(
|
|||
|
||||
|
||||
@has_request_variables
|
||||
def get_fixtures(request: HttpResponse, integration_name: str = REQ()) -> HttpResponse:
|
||||
def get_fixtures(request: HttpRequest, integration_name: str = REQ()) -> HttpResponse:
|
||||
valid_integration_name = get_valid_integration_name(integration_name)
|
||||
if not valid_integration_name:
|
||||
raise ResourceNotFoundError(f'"{integration_name}" is not a valid webhook integration.')
|
||||
|
|
Loading…
Reference in New Issue