Skip to content

Commit

Permalink
Docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhbrook committed Jan 18, 2022
1 parent 777bf44 commit 8fc4276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pyee/base.py
Expand Up @@ -91,9 +91,9 @@ def on(f: Callable) -> Callable:

def add_listener(self, event: str, f: Callable) -> Callable:
"""Register the function ``f`` to the event name ``event``. This method
doesn't afford narrower types than ``EventEmitter#on`` but is a natural
pair to ``EventEmitter#listens_to`` and if nothing else has simpler
behavior.
doesn't afford a narrower return type than ``EventEmitter#on`` but is a
natural pair to ``EventEmitter#listens_to`` and if nothing else has
stricter arguments and simpler behavior.
"""
self._add_event_handler(event, f, f)
return f
Expand Down
3 changes: 1 addition & 2 deletions pyee/uplift.py
Expand Up @@ -106,8 +106,7 @@ def uplift(
``AsyncIOEventEmitter`` so that you may register async event handlers
in your ``asyncio`` app but still be able to receive events from the
underlying event emitter and call the underlying event emitter's existing
handlers. This trick will also often work for a deprecated
``EventEmitter`` instance.
handlers.
When called, ``uplift`` instantiates a new instance of ``cls``, passing
along any unrecognized arguments, and overwrites the ``emit`` method on
Expand Down

0 comments on commit 8fc4276

Please sign in to comment.