Skip to content

Commit ad13443

Browse files
Fix simple unused arguments with underscore prefix
- Prefix unused arguments with underscore to indicate intentional non-use - Signal handler frame parameter, method args/kwargs, debug config port
1 parent fea615b commit ad13443

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

src/agentex/lib/cli/debug/debug_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def create_acp_debug(
6161
def create_both_debug(
6262
cls,
6363
worker_port: int = 5678,
64-
acp_port: int = 5679,
64+
_acp_port: int = 5679,
6565
wait_for_attach: bool = False,
6666
auto_port: bool = True
6767
) -> "DebugConfig":

src/agentex/lib/cli/handlers/agent_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def run_agent(manifest_path: str, debug_config: "DebugConfig | None" = None):
135135
# Flag to track if we're shutting down
136136
shutting_down = False
137137

138-
def signal_handler(signum, frame):
138+
def signal_handler(signum, _frame):
139139
"""Handle signals by raising KeyboardInterrupt"""
140140
nonlocal shutting_down
141141
if shutting_down:

src/agentex/lib/sdk/fastacp/tests/test_base_acp_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ async def mock_handler(params):
141141
data = response.json()
142142
assert data["jsonrpc"] == "2.0"
143143
assert data["id"] == "test-1"
144-
print("DATA", data)
145144
# Should return immediate acknowledgment
146145
assert data["result"]["status"] == "processing"
147146

src/agentex/lib/utils/completions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
@singledispatch
15-
def _concat_chunks(a: None, b: Any):
15+
def _concat_chunks(_a: None, b: Any):
1616
return b
1717

1818

src/agentex/lib/utils/model_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def from_yaml(cls: type[T], file_path: str) -> T:
2727
def to_json(self, *args, **kwargs) -> str:
2828
return self.model_dump_json(*args, **kwargs)
2929

30-
def to_dict(self, *args, **kwargs) -> dict[str, Any]:
30+
def to_dict(self, *_args, **_kwargs) -> dict[str, Any]:
3131
return recursive_model_dump(self)
3232

3333

0 commit comments

Comments
 (0)