diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-30 11:33:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 11:33:52 +0300 |
commit | 0355d57fc1159312a131b2e44acb4a0240b2de4e (patch) | |
tree | 225b6c5f9904d8699332add3cb0939fb8be68ef2 /sphinx/events.py | |
parent | 7a4bbf372a470700a1dfd96dd57054bb96b92fd3 (diff) | |
parent | ab184ac20d82d0546c21f33d2fdfbfb324078d56 (diff) |
Merge pull request #6972 from tk0miya/refactor_type_annotation2
mypy: Enable disallow_incomplete_defs flag for type checking
Diffstat (limited to 'sphinx/events.py')
-rw-r--r-- | sphinx/events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/events.py b/sphinx/events.py index 52a87439b..288274f33 100644 --- a/sphinx/events.py +++ b/sphinx/events.py @@ -81,7 +81,7 @@ class EventManager: for event in self.listeners.values(): event.pop(listener_id, None) - def emit(self, name: str, *args) -> List: + def emit(self, name: str, *args: Any) -> List: """Emit a Sphinx event.""" try: logger.debug('[app] emitting event: %r%s', name, repr(args)[:100]) @@ -99,7 +99,7 @@ class EventManager: results.append(callback(self.app, *args)) return results - def emit_firstresult(self, name: str, *args) -> Any: + def emit_firstresult(self, name: str, *args: Any) -> Any: """Emit a Sphinx event and returns first result. This returns the result of the first handler that doesn't return ``None``. |