Skip to content

Commit

Permalink
annotations fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jul 23, 2024
1 parent fff4260 commit 4b92ff8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/textual/_dispatch_key.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from typing import Callable

from . import events
Expand All @@ -10,7 +12,7 @@
async def dispatch_key(node: DOMNode, event: events.Key) -> bool:
"""Dispatch a key event to method.
This method will call the method named 'key_<event.key>' if it exists.
This function will call the method named 'key_<event.key>' on a node if it exists.
Some keys have aliases. The first alias found will be invoked if it exists.
If multiple handlers exist that match the key, an exception is raised.
Expand Down

0 comments on commit 4b92ff8

Please sign in to comment.