Skip to content

Commit 09b2002

Browse files
declan-scaleclaude
andcommitted
fix: resolve lint and test failures from new endpoints
- Import NOT_GIVEN in agents.py to fix NameError in custom create_task/cancel_task helpers - Convert tests.utils imports to relative imports so pyright can resolve them Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 53b5c36 commit 09b2002

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/agentex/resources/agents/agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pydantic import ValidationError
1111

1212
from ...types import agent_rpc_params, agent_list_params, agent_rpc_by_name_params
13-
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
13+
from ..._types import NOT_GIVEN, Body, Omit, Query, Headers, NotGiven, omit, not_given
1414
from ..._utils import path_template, maybe_transform, async_maybe_transform
1515
from ..._compat import cached_property
1616
from .schedules import (

tests/api_resources/agents/test_deployments.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import pytest
99

1010
from agentex import Agentex, AsyncAgentex
11-
from tests.utils import assert_matches_type
1211
from agentex.types import AgentRpcResponse
1312
from agentex.types.agents import (
1413
DeploymentListResponse,
@@ -18,6 +17,8 @@
1817
)
1918
from agentex.types.shared import DeleteResponse
2019

20+
from ...utils import assert_matches_type
21+
2122
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
2223

2324

tests/api_resources/agents/test_schedules.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import pytest
99

1010
from agentex import Agentex, AsyncAgentex
11-
from tests.utils import assert_matches_type
1211
from agentex._utils import parse_datetime
1312
from agentex.types.agents import (
1413
ScheduleListResponse,
@@ -20,6 +19,8 @@
2019
)
2120
from agentex.types.shared import DeleteResponse
2221

22+
from ...utils import assert_matches_type
23+
2324
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
2425

2526

tests/api_resources/test_checkpoints.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
import pytest
99

1010
from agentex import Agentex, AsyncAgentex
11-
from tests.utils import assert_matches_type
1211
from agentex.types import (
1312
CheckpointPutResponse,
1413
CheckpointListResponse,
1514
CheckpointGetTupleResponse,
1615
)
1716

17+
from ..utils import assert_matches_type
18+
1819
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1920

2021

0 commit comments

Comments
 (0)