[SDK] relax response typehint

This commit is contained in:
William Fu-Hinthorn
2024-12-16 11:28:21 -08:00
parent d9b7aaa5cc
commit 006305f6a8
+9 -1
View File
@@ -169,7 +169,15 @@ class BaseUser(typing.Protocol):
Authenticator = Callable[
..., Awaitable[tuple[list[str], typing.Union[MinimalUser, str, MinimalUserDict]]]
...,
Awaitable[
tuple[
list[str],
typing.Union[
MinimalUser, str, MinimalUserDict, typing.Mapping[str, typing.Any]
],
]
],
]
"""Type for authentication functions.