From 006305f6a859d77e174b9d44622a0147221981ac Mon Sep 17 00:00:00 2001 From: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:27:47 -0800 Subject: [PATCH] [SDK] relax response typehint --- libs/sdk-py/langgraph_sdk/auth/types.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/sdk-py/langgraph_sdk/auth/types.py b/libs/sdk-py/langgraph_sdk/auth/types.py index 21503f8b9..fc9117e00 100644 --- a/libs/sdk-py/langgraph_sdk/auth/types.py +++ b/libs/sdk-py/langgraph_sdk/auth/types.py @@ -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.