Skip to content

Commit e7bb788

Browse files
Update Python version in Darglint workflow to 3.12 and fix formatting in test_response_api.py
1 parent a4b38a4 commit e7bb788

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/darglint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python
2222
uses: actions/setup-python@v5
2323
with:
24-
python-version: '3.11'
24+
python-version: '3.12'
2525
cache: 'pip' # caching pip dependencies
2626

2727
- name: Pip install

tests/llm/test_response_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def test_openai_response_model_parse_and_cost():
312312
function_call and reasoning outputs.
313313
"""
314314
args = OpenAIResponseModelArgs(model_name="gpt-4.1")
315-
315+
316316
# Mock outputs
317317
mock_function_call_output = {
318318
"type": "function_call",
@@ -326,9 +326,9 @@ def test_openai_response_model_parse_and_cost():
326326
input_tokens=70,
327327
output_tokens=40,
328328
)
329-
329+
330330
# Mock the OpenAI client to avoid needing OPENAI_API_KEY
331-
with patch('agentlab.llm.response_api.OpenAI') as mock_openai_class:
331+
with patch("agentlab.llm.response_api.OpenAI") as mock_openai_class:
332332
mock_client = MagicMock()
333333
mock_openai_class.return_value = mock_client
334334
model = args.make_model()

0 commit comments

Comments
 (0)