From c30c09adc3f992428b1a3ef3c26c78ad87d98185 Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 28 Feb 2023 13:06:09 +0000 Subject: [PATCH] Simplify Bindings.shown_keys docstring In the public interface it's a property, not a method, so it doesn't need a 'Returns'. --- src/textual/binding.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/textual/binding.py b/src/textual/binding.py index acf6b0345..bf05b7210 100644 --- a/src/textual/binding.py +++ b/src/textual/binding.py @@ -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