mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #1899 from davep/tidy-binding-docstring
Simplify Bindings.shown_keys docstring
This commit is contained in:
@@ -118,11 +118,7 @@ class Bindings:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def shown_keys(self) -> list[Binding]:
|
def shown_keys(self) -> list[Binding]:
|
||||||
"""A list of bindings for shown keys.
|
"""A list of bindings for shown keys."""
|
||||||
|
|
||||||
Returns:
|
|
||||||
Shown bindings.
|
|
||||||
"""
|
|
||||||
keys = [binding for binding in self.keys.values() if binding.show]
|
keys = [binding for binding in self.keys.values() if binding.show]
|
||||||
return keys
|
return keys
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user