From 9cec7bd84038b017b89c88a96ae4901732ed392e Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Wed, 14 Dec 2022 15:04:33 +0000 Subject: [PATCH] Add a docstring to the Binding dataclass --- src/textual/binding.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/textual/binding.py b/src/textual/binding.py index 62925ec53d..e1a0f52cb9 100644 --- a/src/textual/binding.py +++ b/src/textual/binding.py @@ -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