mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 06:18:05 +00:00
core[minor]: Add type overload for secret_from_env factory (#26091)
Add type overload
This commit is contained in:
@@ -353,7 +353,7 @@ def from_env(
|
||||
|
||||
|
||||
@overload
|
||||
def secret_from_env(key: str, /) -> Callable[[], SecretStr]: ...
|
||||
def secret_from_env(key: Union[str, Sequence[str]], /) -> Callable[[], SecretStr]: ...
|
||||
|
||||
|
||||
@overload
|
||||
|
Reference in New Issue
Block a user