Skip to content

Commit 2bb46f2

Browse files
committed
Correct Missing Type Annotations
1 parent 83e200f commit 2bb46f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit_ina260.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
"""
2020

2121
# imports
22-
import board
2322

2423
try:
25-
from board import I2C
24+
from board import I2C
2625
except ImportError:
2726
pass
2827

@@ -174,7 +173,7 @@ class INA260:
174173
175174
"""
176175

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

180179
if self._manufacturer_id != self.TEXAS_INSTRUMENT_ID:

0 commit comments

Comments
 (0)