Skip to content

Commit eab3b0a

Browse files
committed
Remove None from return type union
1 parent 9ab7c66 commit eab3b0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_fruitjam/peripherals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,11 @@ def dac_present(self) -> bool:
245245
return self._dac_present
246246

247247
@property
248-
def dac(self) -> adafruit_tlv320.TLV320DAC3100 | None:
248+
def dac(self) -> adafruit_tlv320.TLV320DAC3100:
249249
return self._dac if self._dac_present else None
250250

251251
@property
252-
def audio(self) -> audiobusio.I2SOut | None:
252+
def audio(self) -> audiobusio.I2SOut:
253253
return self._audio if self._dac_present else None
254254

255255
def sd_check(self) -> bool:

0 commit comments

Comments
 (0)