Link Python keywords with Python's documentation

This commit is contained in:
Lonami Exo
2019-07-06 12:10:25 +02:00
parent 42d5c0fe6d
commit 8e36bb4c4d
40 changed files with 238 additions and 238 deletions

View File

@@ -119,7 +119,7 @@ def unregister(callback, event=None):
def is_handler(callback):
"""
Returns ``True`` if the given callback is an
Returns `True` if the given callback is an
event handler (i.e. you used `register` on it).
"""
return hasattr(callback, _HANDLERS_ATTRIBUTE)
@@ -135,6 +135,6 @@ def list(callback):
def _get_handlers(callback):
"""
Like ``list`` but returns ``None`` if the callback was never registered.
Like ``list`` but returns `None` if the callback was never registered.
"""
return getattr(callback, _HANDLERS_ATTRIBUTE, None)