mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
pybricks.common.Keypad: Add typing.
This commit is contained in:
@@ -779,12 +779,13 @@ class Keypad:
|
||||
def __init__(self, active_buttons):
|
||||
pass
|
||||
|
||||
def pressed(self):
|
||||
"""Checks which buttons are currently pressed.
|
||||
def pressed(self) -> Tuple[Button]:
|
||||
"""pressed() -> Tuple[Button]
|
||||
|
||||
:returns: Tuple of pressed buttons.
|
||||
:rtype: Tuple of :class:`Button`
|
||||
Checks which buttons are currently pressed.
|
||||
|
||||
Returns:
|
||||
Tuple of pressed buttons.
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -6,9 +6,6 @@ from typing import Collection, Iterable, Optional, Tuple, Union, overload
|
||||
from .geometry import Axis, Matrix, vector
|
||||
from .parameters import Button, Color, Direction, Side, Stop, Port
|
||||
|
||||
class Keypad:
|
||||
def pressed(self) -> Tuple[Button]: ...
|
||||
|
||||
class Battery:
|
||||
def voltage(self) -> int: ...
|
||||
def current(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user