Skip to content

Commit faaa227

Browse files
updated type hints for _low_bank decorator
1 parent 9d8a952 commit faaa227

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

adafruit_as7341.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@
113113
) # GPIO Settings and status: polarity, direction, sets output, reads
114114
_AS7341_ASTEP_L: int = const(0xCA) # Integration step size ow byte
115115
_AS7341_ASTEP_H: int = const(0xCB) # Integration step size high byte
116-
_AS7341_FD_TIME1: int = const(0xD8) # Flicker detection integration time low byte
116+
_AS7341_FD_TIME1: int = const(
117+
0xD8
118+
) # Flicker detection integration time low byte
117119
_AS7341_FD_TIME2: int = const(0xDA) # Flicker detection gain and high nibble
118120
_AS7341_FD_STATUS: int = const(
119121
0xDB
@@ -123,9 +125,9 @@
123125
_AS7341_FD_CFG0: int = const(0xD7) # Enables FIFO for flicker detection
124126

125127

126-
def _low_bank(func: TCallable) -> Callable[[Any], TCallable]:
128+
def _low_bank(func: Any) -> Any:
127129
# pylint:disable=protected-access
128-
def _decorator(self, *args, **kwargs) -> TCallable:
130+
def _decorator(self, *args, **kwargs) -> Any:
129131
self._low_bank_active = True
130132
retval = func(self, *args, **kwargs)
131133
self._low_bank_active = False

0 commit comments

Comments
 (0)