mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 21:43:44 +00:00
partners[lint]: run pyupgrade
to get code in line with 3.9 standards (#30781)
Using `pyupgrade` to get all `partners` code up to 3.9 standards (mostly, fixing old `typing` imports).
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import os # type: ignore[import-not-found]
|
||||
from typing import Dict
|
||||
|
||||
from exa_py import Exa # type: ignore
|
||||
from langchain_core.utils import convert_to_secret_str
|
||||
|
||||
|
||||
def initialize_client(values: Dict) -> Dict:
|
||||
def initialize_client(values: dict) -> dict:
|
||||
"""Initialize the client."""
|
||||
exa_api_key = values.get("exa_api_key") or os.environ.get("EXA_API_KEY") or ""
|
||||
values["exa_api_key"] = convert_to_secret_str(exa_api_key)
|
||||
|
Reference in New Issue
Block a user