Skip to content

Commit 080fecd

Browse files
committed
Fix SocketpoolModuleType to use types.ModuleType
1 parent 0d4396c commit 080fecd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adafruit_requests.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@
5858
cellular_socket.socket,
5959
cpython_socket.socket,
6060
)
61-
SocketpoolModuleType = Union[
62-
types.ModuleType("socket"),
63-
types.ModuleType("socketpool"),
64-
]
61+
SocketpoolModuleType = types.ModuleType
6562
SSLContextType = TypeVar(
6663
"SSLContextType", ssl.SSLContext
6764
) # Can use either CircuitPython or CPython ssl module

0 commit comments

Comments
 (0)