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.
|
Register the listener for a given event.
|
||||||
|
|
||||||
Args:
|
:param listener: callable i.e. setup_db(app, loop)
|
||||||
listener: callable i.e. setup_db(app, loop)
|
:param event: when to register listener i.e. 'before_server_start'
|
||||||
event: when to register listener i.e. 'before_server_start'
|
:return: listener
|
||||||
|
|
||||||
Returns: listener
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return self.listener(event)(listener)
|
return self.listener(event)(listener)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user