Skip to content

Commit a9aa0bf

Browse files
committed
fix: simplify stream cleanup type to avoid line length issues
- Use list[Any] for streams_to_cleanup to avoid very long type annotation - Fixes ruff E501 line too long error
1 parent 0ad4f8b commit a9aa0bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/shared/test_proxy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Tests for the MCP proxy pattern."""
22

33
from collections.abc import Callable
4+
from typing import Any
45

56
import anyio
67
import pytest
@@ -21,7 +22,7 @@
2122
@pytest.fixture
2223
async def create_streams() -> Callable[[], StreamsFixtureReturn]:
2324
"""Helper fixture to create memory streams for testing with proper cleanup."""
24-
streams_to_cleanup: list[MemoryObjectSendStream[SessionMessage | Exception] | MemoryObjectReceiveStream[SessionMessage | Exception] | MemoryObjectSendStream[SessionMessage] | MemoryObjectReceiveStream[SessionMessage]] = []
25+
streams_to_cleanup: list[Any] = []
2526

2627
def _create() -> StreamsFixtureReturn:
2728
client_read_writer, client_read = anyio.create_memory_object_stream[SessionMessage | Exception](10)

0 commit comments

Comments
 (0)