Skip to content

Commit 214cbc6

Browse files
committed
Reformatted per pre-commit
1 parent 74b48de commit 214cbc6

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

adafruit_cursorcontrol/cursorcontrol.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,15 @@ def __init__(
8282

8383
# pylint: enable=too-many-arguments,line-too-long
8484

85-
def __enter__(self) -> 'Cursor':
85+
def __enter__(self) -> "Cursor":
8686
return self
8787

88-
def __exit__(self, exception_type: Optional[Type[type]], exception_value: Optional[BaseException], traceback: Optional[TracebackType]) -> None:
88+
def __exit__(
89+
self,
90+
exception_type: Optional[Type[type]],
91+
exception_value: Optional[BaseException],
92+
traceback: Optional[TracebackType],
93+
) -> None:
8994
self.deinit()
9095

9196
def deinit(self) -> None:
@@ -233,7 +238,7 @@ def cursor_bitmap(self, bmp: displayio.Bitmap) -> None:
233238

234239
def generate_cursor(self, bmp: displayio.Bitmap) -> None:
235240
"""Generates a cursor icon
236-
241+
237242
:param ~displayio.Bitmap bmp: A Bitmap to use for the cursor
238243
"""
239244
self._is_deinited()

adafruit_cursorcontrol/cursorcontrol_cursormanager.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,15 @@ def __init__(self, cursor: Cursor) -> None:
4747
self._event = Event()
4848
self._init_hardware()
4949

50-
def __enter__(self) -> 'CursorManager':
50+
def __enter__(self) -> "CursorManager":
5151
return self
5252

53-
def __exit__(self, exception_type: Optional[Type[type]], exception_value: Optional[BaseException], traceback: Optional[TracebackType]) -> None:
53+
def __exit__(
54+
self,
55+
exception_type: Optional[Type[type]],
56+
exception_value: Optional[BaseException],
57+
traceback: Optional[TracebackType],
58+
) -> None:
5459
self.deinit()
5560

5661
def deinit(self) -> None:

0 commit comments

Comments
 (0)