mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
fix(openai): remove __future__.annotations import from test files (#33144)
Breaks schema conversion in places.
This commit is contained in:
@@ -85,6 +85,7 @@ ignore = [
|
||||
"RUF001",
|
||||
"ERA001",
|
||||
"PLR0911",
|
||||
"FA100", # from __future__ import annotations breaks some schema conversion logic
|
||||
|
||||
# TODO
|
||||
"PLR2004", # Comparison to magic number
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
"""Test ChatOpenAI chat model."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import base64
|
||||
import json
|
||||
from collections.abc import AsyncIterator
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
"""Test Responses API usage."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
from typing import Annotated, Any, Literal, Optional, cast
|
||||
|
||||
Reference in New Issue
Block a user