Skip to content

Commit c5e1a4c

Browse files
committed
remove LegacyCircuitPythonSocketType
1 parent f4478ce commit c5e1a4c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

adafruit_requests.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ def connect(
7777
kwarg optionally may indicate SSL or not, depending on the underlying interface.
7878
"""
7979

80-
class LegacyCircuitPythonSocketType(CommonCircuitPythonSocketType, Protocol):
81-
"""Describes the structure a legacy CircuitPython socket type must have."""
82-
83-
def recv(self, bufsize: int = ...) -> bytes:
84-
"""Receive data from the socket. The return value is a bytes object representing
85-
the data received. The maximum amount of data to be received at once is specified
86-
by bufsize."""
87-
8880
class SupportsRecvWithFlags(Protocol):
8981
"""Describes a type that posseses a socket recv() method supporting the flags kwarg."""
9082

@@ -122,7 +114,6 @@ def connect(self, address: Union[Tuple[Any, ...], str, bytes]) -> None:
122114
"""Connect to a remote socket at the provided address."""
123115

124116
SocketType = Union[
125-
LegacyCircuitPythonSocketType,
126117
CircuitPythonSocketType,
127118
StandardPythonSocketType,
128119
]

0 commit comments

Comments
 (0)