File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1414import anyio
1515from anyio .abc import TaskGroup
1616
17- if sys .version_info < (3 , 11 ): # pragma: no cover
18- from exceptiongroup import BaseExceptionGroup
17+ if sys .version_info < (3 , 11 ): # pragma: lax no cover
18+ from exceptiongroup import BaseExceptionGroup # pragma: lax no cover
1919
2020
2121def collapse_exception_group (exc_group : BaseExceptionGroup [BaseException ]) -> BaseException :
Original file line number Diff line number Diff line change 1212from pydantic import BaseModel , TypeAdapter
1313from typing_extensions import Self
1414
15- if sys .version_info < (3 , 11 ): # pragma: no cover
16- from exceptiongroup import BaseExceptionGroup
15+ if sys .version_info < (3 , 11 ): # pragma: lax no cover
16+ from exceptiongroup import BaseExceptionGroup # pragma: lax no cover
1717
1818from mcp .shared ._exception_utils import collapse_exception_group
1919from mcp .shared .exceptions import MCPError
Original file line number Diff line number Diff line change 55import anyio
66import pytest
77
8- if sys .version_info < (3 , 11 ): # pragma: no cover
9- from exceptiongroup import BaseExceptionGroup
8+ if sys .version_info < (3 , 11 ): # pragma: lax no cover
9+ from exceptiongroup import BaseExceptionGroup # pragma: lax no cover
1010
1111from mcp .shared ._exception_utils import collapse_exception_group , create_task_group
1212
You can’t perform that action at this time.
0 commit comments