Skip to content

Commit 94e02b8

Browse files
committed
Add types to the docstrings for a Binding
1 parent 38e6d1d commit 94e02b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/textual/binding.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ class NoBinding(Exception):
2121
@dataclass(frozen=True)
2222
class Binding:
2323
key: str
24-
"""Key to bind. This can also be a comma-separated list of keys to map multiple keys to a single action."""
24+
"""str: Key to bind. This can also be a comma-separated list of keys to map multiple keys to a single action."""
2525
action: str
26-
"""Action to bind to."""
26+
"""str: Action to bind to."""
2727
description: str
28-
"""Description of action."""
28+
"""str: Description of action."""
2929
show: bool = True
30-
"""Show the action in Footer, or False to hide."""
30+
"""bool: Show the action in Footer, or False to hide."""
3131
key_display: str | None = None
32-
"""How the key should be shown in footer."""
32+
"""str | None: How the key should be shown in footer."""
3333
universal: bool = False
34-
"""Allow forwarding from app to focused widget."""
34+
"""bool: Allow forwarding from app to focused widget."""
3535

3636

3737
@rich.repr.auto

0 commit comments

Comments
 (0)