Merge pull request #1899 from davep/tidy-binding-docstring

Simplify Bindings.shown_keys docstring
This commit is contained in:
Will McGugan
2023-02-28 13:26:49 +00:00
committed by GitHub

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