Add docblock, fix formatting, fix implicit optional typing
This commit is contained in:
parent
45b6e6d8c4
commit
e6e31d0a99
|
@ -277,12 +277,18 @@ class SignalRouter(BaseRouter):
|
||||||
|
|
||||||
return cast(Signal, signal)
|
return cast(Signal, signal)
|
||||||
|
|
||||||
def finalize(self, do_compile: bool = True, do_optimize: bool = False, loop: asyncio.AbstractEventLoop = None):
|
def finalize(
|
||||||
|
self,
|
||||||
|
do_compile: bool = True,
|
||||||
|
do_optimize: bool = False,
|
||||||
|
loop: Optional[asyncio.AbstractEventLoop] = None,
|
||||||
|
):
|
||||||
"""Finalize the router and compile the routes
|
"""Finalize the router and compile the routes
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
do_compile (bool, optional): Whether to compile the routes. Defaults to `True`.
|
do_compile (bool, optional): Whether to compile the routes. Defaults to `True`.
|
||||||
do_optimize (bool, optional): Whether to optimize the routes. Defaults to `False`.
|
do_optimize (bool, optional): Whether to optimize the routes. Defaults to `False`.
|
||||||
|
loop (asyncio.AbstractEventLoop, optional): Event loop override for asyncio.get_running_loop().
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
SignalRouter: The router
|
SignalRouter: The router
|
||||||
|
|
Loading…
Reference in New Issue
Block a user