diff options
Diffstat (limited to 'sphinx/events.py')
-rw-r--r-- | sphinx/events.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sphinx/events.py b/sphinx/events.py index 3a3753895..9d7402554 100644 --- a/sphinx/events.py +++ b/sphinx/events.py @@ -25,9 +25,11 @@ if TYPE_CHECKING: logger = logging.getLogger(__name__) -EventListener = NamedTuple('EventListener', [('id', int), - ('handler', Callable), - ('priority', int)]) + +class EventListener(NamedTuple): + id: int + handler: Callable + priority: int # List of all known core events. Maps name to arguments description. |