Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-12-30 11:33:52 +0300
committerGitHub <noreply@github.com>2019-12-30 11:33:52 +0300
commit0355d57fc1159312a131b2e44acb4a0240b2de4e (patch)
tree225b6c5f9904d8699332add3cb0939fb8be68ef2 /sphinx/events.py
parent7a4bbf372a470700a1dfd96dd57054bb96b92fd3 (diff)
parentab184ac20d82d0546c21f33d2fdfbfb324078d56 (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.py4
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``.