Skip to content

Commit a1537fe

Browse files
rushitatcursoragent
andcommitted
Fix pyright: type MINIMAL_INPUT as list[ResponseInputUserMessage]
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7f685a7 commit a1537fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/api_resources/test_responses.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from gradient import Gradient, AsyncGradient
1414
from tests.utils import assert_matches_type
15-
from gradient.types.responses import ResponseCreateResponse
15+
from gradient.types.responses import ResponseCreateResponse, ResponseInputUserMessage
1616

1717
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1818

@@ -24,8 +24,8 @@
2424
"model": "openai-gpt-5.2-pro",
2525
}
2626

27-
# Minimal input for create()
28-
MINIMAL_INPUT = [
27+
# Minimal input for create() (typed so pyright accepts as Iterable[ResponseInputItem])
28+
MINIMAL_INPUT: list[ResponseInputUserMessage] = [
2929
{"type": "message", "role": "user", "content": "Hello"},
3030
]
3131

0 commit comments

Comments
 (0)