Skip to content

Commit ca0f247

Browse files
committed
fix List annotation
1 parent 68760d1 commit ca0f247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_button/button_base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def name(self) -> str:
178178
def name(self, new_name: str) -> None:
179179
self._name = new_name
180180

181-
def contains(self, point: Union[tuple[int, int], List[int, int], List[Dict[str, int]]]) -> bool:
181+
def contains(self, point: Union[tuple[int, int], List[int], List[Dict[str, int]]]) -> bool:
182182
"""Used to determine if a point is contained within a button. For example,
183183
``button.contains(touch)`` where ``touch`` is the touch point on the screen will allow for
184184
determining that a button has been touched.

0 commit comments

Comments
 (0)