lib.App: Add _root_cmd() #67
1 changed files with 3 additions and 0 deletions
|
|
@ -402,6 +402,9 @@ class App: # export
|
||||||
def call_async(self, awaitable: Awaitable[T], timeout: float | None = None) -> T:
|
def call_async(self, awaitable: Awaitable[T], timeout: float | None = None) -> T:
|
||||||
return self.async_runner.call(awaitable, timeout)
|
return self.async_runner.call(awaitable, timeout)
|
||||||
|
|
||||||
|
def _root_cmd(self) -> AbstractCmd | None:
|
||||||
|
return self.__root
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def eloop(self) -> asyncio.AbstractEventLoop:
|
def eloop(self) -> asyncio.AbstractEventLoop:
|
||||||
if self.__eloop is None:
|
if self.__eloop is None:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue