Skip to content

Commit

Permalink
Merge pull request #2965 from andrewbaldwin44/bugfix/auth-args-type
Browse files Browse the repository at this point in the history
Fix Auth Args Type
  • Loading branch information
cyberw authored Nov 1, 2024
2 parents cb4d056 + a352a59 commit 1a8a407
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions locust/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,29 +53,29 @@
DEFAULT_CACHE_TIME = 2.0


class InputField(TypedDict):
class InputField(TypedDict, total=False):
label: str
name: str
default_value: bool | None
choices: list[str] | None
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


class AuthArgs(TypedDict, total=False):
custom_form: CustomForm
auth_providers: AuthProvider
auth_providers: list[AuthProvider]
username_password_callback: str
error: str
info: str
Expand Down

0 comments on commit 1a8a407

Please sign in to comment.