MCPcopy
hub / github.com/Textualize/textual / _post_init

Method _post_init

src/textual/command.py:240–254  ·  view source on GitHub ↗

Internal method to run post init task.

(self)

Source from the content-addressed store, hash-verified

238 )
239
240 def _post_init(self) -> None:
241 """Internal method to run post init task."""
242
243 async def post_init_task() -> None:
244 """Wrapper to post init that runs in a task."""
245 try:
246 await self.startup()
247 except Exception:
248 from rich.traceback import Traceback
249
250 self.app.log.error(Traceback())
251 else:
252 self._init_success = True
253
254 self._init_task = create_task(post_init_task())
255
256 async def _wait_init(self) -> None:
257 """Wait for initialization."""

Callers 1

_on_mountMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected