Skip to content

Commit

Permalink
[SDK] relax response typehint
Browse files Browse the repository at this point in the history
So you can return a dict with extra args
  • Loading branch information
hinthornw authored Dec 16, 2024
2 parents d9b7aaa + 006305f commit 4caa483
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libs/sdk-py/langgraph_sdk/auth/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,15 @@ def identity(self) -> str:


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.
Expand Down

0 comments on commit 4caa483

Please sign in to comment.