From 8a1716d5e2e618a2f119768348cf699b514c4219 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Wed, 23 Dec 2020 11:45:37 +0100 Subject: [PATCH] api/common/Keypad: change return type to tuple This follows an implementation change that was made for performance reasons (https://github.com/pybricks/pybricks-micropython/commit/95741ac2f8f118396a517a38f4d0f7fb92136f82). --- pybricks/_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pybricks/_common.py b/pybricks/_common.py index 420da63..b17343c 100644 --- a/pybricks/_common.py +++ b/pybricks/_common.py @@ -665,8 +665,8 @@ class Keypad: def pressed(self): """Checks which buttons are currently pressed. - :returns: List of pressed buttons. - :rtype: List of :class:`Button <.parameters.Button>` + :returns: Tuple of pressed buttons. + :rtype: Tuple of :class:`Button <.parameters.Button>` """ pass