File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ async def run(self) -> AsyncIterator[None]:
8080 ...
8181 """
8282 async with create_mcp_task_group () as tg :
83- self ._task_group = tg
83+ self ._task_group = tg # type: ignore[assignment]
8484 try :
8585 yield
8686 finally :
Original file line number Diff line number Diff line change 1818import anyio
1919from anyio .abc import TaskGroup
2020
21- if sys .version_info < (3 , 11 ):
21+ if sys .version_info < (3 , 11 ): # pragma: no cover
2222 from exceptiongroup import BaseExceptionGroup
2323
2424
@@ -28,7 +28,7 @@ def collapse_exception_group(exc: BaseExceptionGroup) -> BaseException: # type:
2828 If the group (and any nested groups) each contain exactly one exception,
2929 return the innermost real exception. Otherwise return *exc* unchanged.
3030 """
31- while isinstance (exc , BaseExceptionGroup ) and len (exc .exceptions ) == 1 :
31+ while isinstance (exc , BaseExceptionGroup ) and len (exc .exceptions ) == 1 : # type: ignore[reportUnnecessaryIsInstance]
3232 exc = exc .exceptions [0 ] # type: ignore[assignment]
3333 return exc
3434
Original file line number Diff line number Diff line change 1212 create_mcp_task_group ,
1313)
1414
15- if sys .version_info < (3 , 11 ):
15+ if sys .version_info < (3 , 11 ): # pragma: no cover
1616 from exceptiongroup import BaseExceptionGroup , ExceptionGroup
1717
1818# ---------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments