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)
|
||||
|
||||
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
|
||||
|
||||
Args:
|
||||
do_compile (bool, optional): Whether to compile the routes. Defaults to `True`.
|
||||
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:
|
||||
SignalRouter: The router
|
||||
|
|
Loading…
Reference in New Issue
Block a user