Skip to content

Commit f706fce

Browse files
committed
chore(dev): bump pyright and fix cli test typing
1 parent 33822d0 commit f706fce

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ build-backend = "hatchling.build"
2828
[dependency-groups]
2929
dev = [
3030
"mcp[cli]>=1.17.0",
31-
"pyright>=1.1.406",
31+
"pyright>=1.1.407",
3232
"pytest>=8.4.2",
3333
"ruff>=0.14.0",
3434
]

tests/test_cli_auth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
from __future__ import annotations
22

3+
from typing import Any
4+
35
from click.testing import CliRunner
46

57
from schwab_mcp import cli
68

79

810
def test_auth_command_uses_max_token_age(monkeypatch, tmp_path):
9-
captured: dict[str, object] = {}
11+
captured: dict[str, Any] = {}
1012

1113
class DummyManager:
1214
def __init__(self, path: str) -> None:

tests/test_cli_server_write_modes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
from click.testing import CliRunner
4+
from typing import Any
45

56
from schwab_mcp import cli
67
from schwab_mcp.approvals import ApprovalDecision, ApprovalManager, ApprovalRequest, NoOpApprovalManager
@@ -34,7 +35,7 @@ def authorized_user_ids(users):
3435
return frozenset(int(value) for value in users)
3536

3637

37-
def _patch_common(monkeypatch, captured):
38+
def _patch_common(monkeypatch, captured: dict[str, Any]) -> None:
3839
monkeypatch.setattr(cli, "AsyncClient", FakeAsyncClient)
3940

4041
def fake_easy_client(**_kwargs):
@@ -59,7 +60,7 @@ async def run(self):
5960

6061

6162
def test_server_defaults_to_read_only(monkeypatch):
62-
captured: dict[str, object] = {}
63+
captured: dict[str, Any] = {}
6364
_patch_common(monkeypatch, captured)
6465

6566
runner = CliRunner()
@@ -82,7 +83,7 @@ def test_server_defaults_to_read_only(monkeypatch):
8283

8384

8485
def test_server_enables_write_mode_when_flag_set(monkeypatch):
85-
captured: dict[str, object] = {}
86+
captured: dict[str, Any] = {}
8687
_patch_common(monkeypatch, captured)
8788

8889
runner = CliRunner()
@@ -106,7 +107,7 @@ def test_server_enables_write_mode_when_flag_set(monkeypatch):
106107

107108

108109
def test_server_enables_write_mode_with_discord(monkeypatch):
109-
captured: dict[str, object] = {}
110+
captured: dict[str, Any] = {}
110111
_patch_common(monkeypatch, captured)
111112
monkeypatch.setattr(cli, "DiscordApprovalManager", DummyDiscordApprovalManager)
112113

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)