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:
Sydney Runkle
2025-04-11 07:18:44 -04:00
committed by GitHub
parent e72f3c26a0
commit 8c6734325b
123 changed files with 1000 additions and 1109 deletions

View File

@@ -2,12 +2,13 @@
from __future__ import annotations
from typing import Awaitable, Callable, Optional, Union
from collections.abc import Awaitable
from typing import Callable, Optional, Union, cast
import openai
from langchain_core.utils import from_env, secret_from_env
from pydantic import Field, SecretStr, model_validator
from typing_extensions import Self, cast
from typing_extensions import Self
from langchain_openai.embeddings.base import OpenAIEmbeddings