Skip to content

Commit 0c14497

Browse files
Jeremy CeriseJeremy Cerise
Jeremy Cerise
authored and
Jeremy Cerise
committed
Fix some minor mixups with typing based on PR feedback
1 parent a29a385 commit 0c14497

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

adafruit_rfm9x.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -683,11 +683,11 @@ def send(
683683
self,
684684
data: ReadableBuffer,
685685
*,
686-
keep_listening: Optional[int] = False,
687-
destination=None,
688-
node=None,
689-
identifier=None,
690-
flags=None
686+
keep_listening: bool = False,
687+
destination: Optional[int] = None,
688+
node: Optional[int] = None,
689+
identifier: Optional[int] = None,
690+
flags: Optional[int] = None
691691
) -> bool:
692692
"""Send a string of data using the transmitter.
693693
You can only send 252 bytes at a time
@@ -760,7 +760,7 @@ def send(
760760
self._write_u8(_RH_RF95_REG_12_IRQ_FLAGS, 0xFF)
761761
return not timed_out
762762

763-
def send_with_ack(self, data) -> bool:
763+
def send_with_ack(self, data: ReadableBuffer) -> bool:
764764
"""Reliable Datagram mode:
765765
Send a packet with data and wait for an ACK response.
766766
The packet header is automatically generated.
@@ -800,7 +800,7 @@ def send_with_ack(self, data) -> bool:
800800
def receive(
801801
self,
802802
*,
803-
keep_listening: Optional[int] = True,
803+
keep_listening: bool = True,
804804
with_header: bool = False,
805805
with_ack: bool = False,
806806
timeout: Optional[float] = None

0 commit comments

Comments
 (0)