Skip to content

Commit c721bca

Browse files
committed
Addressing PR updates
1 parent 58895b9 commit c721bca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adafruit_ads1x15/ads1015.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def rate_config(self) -> Dict[int, int]:
6464
"""Rate configuration masks."""
6565
return _ADS1015_CONFIG_DR
6666

67-
def _data_rate_default(self) -> int:
67+
def _data_rate_default(self) -> Literal[1600]:
6868
return 1600
6969

7070
def _conversion_value(self, raw_adc: int) -> int:

adafruit_ads1x15/ads1115.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def rate_config(self) -> Dict[int, int]:
6565
"""Rate configuration masks."""
6666
return _ADS1115_CONFIG_DR
6767

68-
def _data_rate_default(self) -> int:
68+
def _data_rate_default(self) -> Literal[128]:
6969
return 128
7070

7171
def _conversion_value(self, raw_adc: int) -> int:

0 commit comments

Comments
 (0)