Skip to content

Commit b021a84

Browse files
author
BiffoBear
committed
Fixed a typing error in socket.accept().
1 parent 199a862 commit b021a84

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

adafruit_wiznet5k/adafruit_wiznet5k_socket.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,11 @@ def listen(self, backlog: Optional[Any] = None) -> None:
285285

286286
def accept(
287287
self,
288-
) -> Union[
289-
wiznet5k.adafruit_wiznet5k_socket.socket,
290-
Tuple[int, Tuple[Union[str, bytearray], Union[int, bytearray]]],
291-
None,
288+
) -> Optional[
289+
Tuple[
290+
wiznet5k.adafruit_wiznet5k_socket.socket,
291+
Tuple[Union[str, bytearray], Union[int, bytearray]],
292+
]
292293
]:
293294
"""
294295
Accept a connection.

0 commit comments

Comments
 (0)