Skip to content

Commit 3792f83

Browse files
committed
made CV Tuple input iterable
1 parent 161994d commit 3792f83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adafruit_ltr390.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from adafruit_register.i2c_bit import RWBit, ROBit
3838

3939
try:
40-
from typing import Optional, Tuple, Type
40+
from typing import Iterable, Optional, Tuple, Type
4141
from busio import I2C
4242
except ImportError:
4343
pass
@@ -103,7 +103,9 @@ class CV:
103103
@classmethod
104104
def add_values(
105105
cls,
106-
value_tuples: Tuple[str, int, str, Optional[float], int, Optional[float]],
106+
value_tuples: Iterable[
107+
Tuple[str, int, str, Optional[float], int, Optional[float]]
108+
],
107109
) -> None:
108110
"""Add CV values to the class"""
109111
cls.string = {}

0 commit comments

Comments
 (0)