@@ -147,7 +147,7 @@ def __init__(
147147 self ._session_exit_stacks = {}
148148 self ._component_name_hook = component_name_hook
149149
150- async def __aenter__ (self ) -> Self : # pragma: no cover
150+ async def __aenter__ (self ) -> Self :
151151 # Enter the exit stack only if we created it ourselves
152152 if self ._owns_exit_stack :
153153 await self ._exit_stack .__aenter__ ()
@@ -158,7 +158,7 @@ async def __aexit__(
158158 _exc_type : type [BaseException ] | None ,
159159 _exc_val : BaseException | None ,
160160 _exc_tb : TracebackType | None ,
161- ) -> bool | None : # pragma: no cover
161+ ) -> bool | None :
162162 """Closes session exit stacks and main exit stack upon completion."""
163163
164164 # Only close the main exit stack if we created it
@@ -323,7 +323,7 @@ async def _establish_session(
323323 await self ._exit_stack .enter_async_context (session_stack )
324324
325325 return result .server_info , session
326- except Exception : # pragma: no cover
326+ except Exception :
327327 # If anything during this setup fails, ensure the session-specific
328328 # stack is closed.
329329 await session_stack .aclose ()
0 commit comments