@@ -102,7 +102,7 @@ def __init__(
102
102
:value: max_multi_press = 2
103
103
104
104
The maximum amount of button presses that a multi-press can be.
105
- :meth:`ButtonHandler.update` returns the appropiate multi-press :class:`ButtonInput`
105
+ :meth:`ButtonHandler.update` returns the appropriate multi-press :class:`ButtonInput`
106
106
object immediaetly after the button has been pressed this many times.
107
107
108
108
.. attribute:: multi_press_interval
@@ -153,7 +153,7 @@ def __init__(
153
153
:value: config.max_multi_press = 2
154
154
155
155
The maximum amount of button presses that a multi-press can be.
156
- :meth:`ButtonHandler.update` returns the appropiate multi-press :class:`ButtonInput`
156
+ :meth:`ButtonHandler.update` returns the appropriate multi-press :class:`ButtonInput`
157
157
object immediaetly after the button has been pressed this many times.
158
158
159
159
.. attribute:: multi_press_interval
@@ -333,20 +333,20 @@ def __init__(
333
333
334
334
.. attribute:: button_number
335
335
:type: int
336
- :value: button_number = 0
336
+ :value: 0
337
337
338
338
The index number of the button associated with the input.
339
339
340
340
.. attribute:: callback
341
341
:type: Callable[[], None]
342
- :value: callback = lambda: None
342
+ :value: lambda: None
343
343
344
344
The function to call when the input is detected
345
- and returned by :meth:`ButtonHandler.update`
345
+ and returned by :meth:`ButtonHandler.update`.
346
346
347
347
.. attribute:: timestamp
348
348
:type: int
349
- :value: timestamp = 0
349
+ :value: 0
350
350
351
351
The timestamp (in milliseconds, provided by :meth:`supervisor.ticks_ms`)
352
352
at which the input was performed.
@@ -450,7 +450,7 @@ def __hash__(self) -> int:
450
450
:return: The hash value of the input.
451
451
:rtype: int
452
452
453
- .. seealso:: :meth:`__eq__` - two :class:`ButtonInput` objects hash to the same value
453
+ .. seealso:: :meth:`__eq__` — two :class:`ButtonInput` objects hash to the same value
454
454
if they are equal.
455
455
"""
456
456
return hash ((self .action , self .button_number ))
0 commit comments