Enter the resolved connector and return an un-entered ClientSession.
(self, exit_stack: AsyncExitStack)
| 226 | self._connect = _connect_transport(srv) |
| 227 | |
| 228 | async def _build_session(self, exit_stack: AsyncExitStack) -> ClientSession: |
| 229 | """Enter the resolved connector and return an un-entered ClientSession.""" |
| 230 | dispatcher = await self._connect(exit_stack, self.mode, self.raise_exceptions) |
| 231 | return ClientSession( |
| 232 | dispatcher=dispatcher, |
| 233 | read_timeout_seconds=self.read_timeout_seconds, |
| 234 | sampling_callback=self.sampling_callback, |
| 235 | list_roots_callback=self.list_roots_callback, |
| 236 | logging_callback=self.logging_callback, |
| 237 | message_handler=self.message_handler, |
| 238 | client_info=self.client_info, |
| 239 | elicitation_callback=self.elicitation_callback, |
| 240 | ) |
| 241 | |
| 242 | async def __aenter__(self) -> Client: |
| 243 | """Enter the async context manager.""" |
no test coverage detected