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:
Dave Pearson
2023-02-28 13:06:09 +00:00
parent 80ae6ce4d9
commit c30c09adc3

View File

@@ -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