fix(openai): remove __future__.annotations import from test files (#33144)

Breaks schema conversion in places.
This commit is contained in:
ccurme
2025-09-29 12:23:32 -04:00
committed by GitHub
parent 33a6def762
commit 839a18e112
3 changed files with 1 additions and 4 deletions

View File

@@ -85,6 +85,7 @@ ignore = [
"RUF001",
"ERA001",
"PLR0911",
"FA100", # from __future__ import annotations breaks some schema conversion logic
# TODO
"PLR2004", # Comparison to magic number

View File

@@ -1,7 +1,5 @@
"""Test ChatOpenAI chat model."""
from __future__ import annotations
import base64
import json
from collections.abc import AsyncIterator

View File

@@ -1,7 +1,5 @@
"""Test Responses API usage."""
from __future__ import annotations
import json
import os
from typing import Annotated, Any, Literal, Optional, cast