integrations: Fix wrong type annotation.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li 2022-07-12 14:10:52 -04:00 committed by Tim Abbott
parent db7a6d15dc
commit 0bedf0cf22
2 changed files with 2 additions and 1 deletions

View File

@ -428,6 +428,7 @@ class OurAuthenticationForm(AuthenticationForm):
password = self.cleaned_data.get("password") password = self.cleaned_data.get("password")
if username is not None and password: if username is not None and password:
assert self.request is not None
subdomain = get_subdomain(self.request) subdomain = get_subdomain(self.request)
realm = get_realm(subdomain) realm = get_realm(subdomain)

View File

@ -57,7 +57,7 @@ def send_webhook_fixture_message(
@has_request_variables @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) valid_integration_name = get_valid_integration_name(integration_name)
if not valid_integration_name: if not valid_integration_name:
raise ResourceNotFoundError(f'"{integration_name}" is not a valid webhook integration.') raise ResourceNotFoundError(f'"{integration_name}" is not a valid webhook integration.')