Skip to content

Commit 74829d5

Browse files
committed
Add Missing Type Annotations
1 parent b2fe434 commit 74829d5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

adafruit_scd30.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
from micropython import const
3535

3636
try:
37-
from typing import Union, Optional # pylint: disable=unused-import
37+
from typing import Union, Optional
38+
from circuitpython_typing import ReadableBuffer
3839
from busio import I2C
3940
except ImportError:
4041
pass
@@ -321,7 +322,7 @@ def _read_data(self) -> None:
321322
">f", self._buffer[12:14] + self._buffer[15:17]
322323
)[0]
323324

324-
def _check_crc(self, data_bytes: bytearray, crc: int) -> bool:
325+
def _check_crc(self, data_bytes: ReadableBuffer, crc: int) -> bool:
325326
return crc == self._crc8(bytearray(data_bytes))
326327

327328
@staticmethod

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
Adafruit-Blinka
66
adafruit-circuitpython-register
77
adafruit-circuitpython-busdevice
8+
adafruit-circuitpython-typing

0 commit comments

Comments
 (0)