Skip to content

Commit 3c5ba58

Browse files
committed
Correct Missing Type Annotations
1 parent 940ff56 commit 3c5ba58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_ina260.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
try:
2424
import typing # pylint: disable=unused-import
25-
from board import I2C
25+
from busio import I2C
2626
except ImportError:
2727
pass
2828

@@ -170,11 +170,11 @@ class INA260:
170170
"""Driver for the INA260 power and current sensor.
171171
172172
:param ~busio.I2C i2c_bus: The I2C bus the INA260 is connected to.
173-
:param address int: The I2C device address for the sensor. Default is ``0x40``.
173+
:param int address: The I2C device address for the sensor. Default is ``0x40``.
174174
175175
"""
176176

177-
def __init__(self, i2c_bus: board.I2C, address: int = 0x40) -> None:
177+
def __init__(self, i2c_bus: I2C, address: int = 0x40) -> None:
178178
self.i2c_device = i2cdevice.I2CDevice(i2c_bus, address)
179179

180180
if self._manufacturer_id != self.TEXAS_INSTRUMENT_ID:

0 commit comments

Comments
 (0)