Skip to content

Commit

Permalink
Add a docstring to the Binding dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
davep committed Dec 14, 2022
1 parent d9e73b8 commit 9cec7bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/textual/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class NoBinding(Exception):

@dataclass(frozen=True)
class Binding:
"""The configuration of a key binding."""

key: str
"""str: Key to bind. This can also be a comma-separated list of keys to map multiple keys to a single action."""
action: str
Expand Down

0 comments on commit 9cec7bd

Please sign in to comment.