Skip to content

Commit f8a74ac

Browse files
Fix mypy ignores in cluster connect cleanup signals test
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6561975 commit f8a74ac

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_cluster_connect_cleanup_propagates_signals.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ async def test_connect_cleanup_arm_does_not_swallow_unexpected_exception() -> No
3333
async def _fake_find_leader(**kwargs: object) -> str:
3434
return "localhost:9001"
3535

36-
cluster.find_leader = _fake_find_leader # type: ignore[method-assign]
36+
cluster.find_leader = _fake_find_leader
3737

3838
import dqliteclient.cluster as cluster_mod
3939

40-
real_dc = cluster_mod.DqliteConnection
40+
real_dc = cluster_mod.DqliteConnection # type: ignore[attr-defined]
4141

4242
class _StubDqliteConnection:
4343
def __init__(self, *a: object, **kw: object) -> None:
@@ -53,10 +53,10 @@ async def close(self) -> None:
5353
# source of the bug surfaces.
5454
raise AttributeError("unexpected attribute access in close()")
5555

56-
cluster_mod.DqliteConnection = _StubDqliteConnection # type: ignore[assignment]
56+
cluster_mod.DqliteConnection = _StubDqliteConnection # type: ignore[assignment,attr-defined]
5757

5858
try:
5959
with pytest.raises(AttributeError, match="unexpected attribute access"):
6060
await cluster.connect("default")
6161
finally:
62-
cluster_mod.DqliteConnection = real_dc # type: ignore[assignment]
62+
cluster_mod.DqliteConnection = real_dc # type: ignore[attr-defined]

0 commit comments

Comments
 (0)