mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Simplify Bindings.shown_keys docstring
In the public interface it's a property, not a method, so it doesn't need a 'Returns'.
This commit is contained in:
@@ -118,11 +118,7 @@ class Bindings:
|
||||
|
||||
@property
|
||||
def shown_keys(self) -> list[Binding]:
|
||||
"""A list of bindings for shown keys.
|
||||
|
||||
Returns:
|
||||
Shown bindings.
|
||||
"""
|
||||
"""A list of bindings for shown keys."""
|
||||
keys = [binding for binding in self.keys.values() if binding.show]
|
||||
return keys
|
||||
|
||||
|
||||
Reference in New Issue
Block a user