From a352a59ccae5fb8d5e4a5069f7e5c7cec522f5a9 Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Fri, 1 Nov 2024 09:50:50 +0100 Subject: [PATCH] Fix auth args type --- locust/web.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/locust/web.py b/locust/web.py index 3aeb4af294..8b2377cba9 100644 --- a/locust/web.py +++ b/locust/web.py @@ -53,7 +53,7 @@ DEFAULT_CACHE_TIME = 2.0 -class InputField(TypedDict): +class InputField(TypedDict, total=False): label: str name: str default_value: bool | None @@ -61,13 +61,13 @@ class InputField(TypedDict): is_secret: bool | None -class CustomForm(TypedDict): +class CustomForm(TypedDict, total=False): inputs: list[InputField] | None callback_url: str submit_button_text: str | None -class AuthProvider(TypedDict): +class AuthProvider(TypedDict, total=False): label: str | None callback_url: str icon_url: str | None @@ -75,7 +75,7 @@ class AuthProvider(TypedDict): class AuthArgs(TypedDict, total=False): custom_form: CustomForm - auth_providers: AuthProvider + auth_providers: list[AuthProvider] username_password_callback: str error: str info: str