Skip to content

Commit 588051a

Browse files
committed
Addressing PR comments
1 parent 5345b40 commit 588051a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_ads1x15/ads1x15.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from micropython import const
2121

2222
try:
23-
from typing import Dict, List, Literal, Optional, Union
23+
from typing import Dict, List, Optional
2424

2525
from busio import I2C
2626
from microcontroller import Pin
@@ -83,7 +83,7 @@ def __init__(
8383
self.i2c_device = I2CDevice(i2c, address)
8484

8585
@property
86-
def bits(self) -> Union[Literal[12], Literal[16]]:
86+
def bits(self) -> int:
8787
"""The ADC bit resolution."""
8888
raise NotImplementedError("Subclass must implement bits property.")
8989

0 commit comments

Comments
 (0)