Skip to content

Commit 44866c7

Browse files
committed
Allow int for timeout parameter
1 parent f0e3aef commit 44866c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aioping/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def checksum(buffer: bytes) -> int:
141141
return answer
142142

143143

144-
async def receive_one_ping(my_socket: socket.socket, id_: int, timeout: float) -> float:
144+
async def receive_one_ping(my_socket: socket.socket, id_: int, timeout: Union[int, float]) -> float:
145145
"""
146146
receive the ping from the socket.
147147
:param my_socket:

0 commit comments

Comments
 (0)