Skip to content

Commit 0d4396c

Browse files
committed
Change SocketpoolModuleType to Union
1 parent 89e8aae commit 0d4396c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

adafruit_requests.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@
5858
cellular_socket.socket,
5959
cpython_socket.socket,
6060
)
61-
SocketpoolModuleType = TypeVar(
62-
"SocketpoolModuleType",
61+
SocketpoolModuleType = Union[
6362
types.ModuleType("socket"),
6463
types.ModuleType("socketpool"),
65-
)
64+
]
6665
SSLContextType = TypeVar(
6766
"SSLContextType", ssl.SSLContext
6867
) # Can use either CircuitPython or CPython ssl module

0 commit comments

Comments
 (0)