Skip to content

Commit 497b56a

Browse files
committed
rework CV Tuple to be Iterable
1 parent 1f8fbba commit 497b56a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_dps310/advanced.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from adafruit_dps310.basic import DPS310
4242

4343
try:
44-
from typing import Tuple, Union
44+
from typing import Iterable, Optional, Tuple, Union
4545
except ImportError:
4646
pass
4747

@@ -53,7 +53,7 @@ class CV:
5353

5454
@classmethod
5555
def add_values(
56-
cls, value_tuples: Tuple[str, int, Union[str, int], Union[str, int, None]]
56+
cls, value_tuples: Iterable[Tuple[str, int, Union[str, int], Optional[float]]]
5757
):
5858
"""Add CV values to the class"""
5959
cls.string = {}

0 commit comments

Comments
 (0)