Fix docstring style in Sanic.register_listener (#1678)
* Fix docstring style: google -> reST
This commit is contained in:
parent
b7d4121586
commit
e13f42c17b
|
@ -138,11 +138,9 @@ class Sanic:
|
|||
"""
|
||||
Register the listener for a given event.
|
||||
|
||||
Args:
|
||||
listener: callable i.e. setup_db(app, loop)
|
||||
event: when to register listener i.e. 'before_server_start'
|
||||
|
||||
Returns: listener
|
||||
:param listener: callable i.e. setup_db(app, loop)
|
||||
:param event: when to register listener i.e. 'before_server_start'
|
||||
:return: listener
|
||||
"""
|
||||
|
||||
return self.listener(event)(listener)
|
||||
|
|
Loading…
Reference in New Issue
Block a user