From 59c0ddccf5c406ef8ebc19cd6080c35934a3e95c Mon Sep 17 00:00:00 2001 From: foamyguy Date: Sun, 9 Jan 2022 12:59:12 -0600 Subject: [PATCH] fallback types --- adafruit_requests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/adafruit_requests.py b/adafruit_requests.py index ee857b8..3bff69b 100644 --- a/adafruit_requests.py +++ b/adafruit_requests.py @@ -65,7 +65,11 @@ InterfaceType = TypeVar("InterfaceType", ESP_SPIcontrol, WIZNET5K, FONA) except ImportError: - pass + # pylint: disable=invalid-name + SocketType = None + SocketpoolModuleType = None + SSLContextType = None + InterfaceType = None # CircuitPython 6.0 does not have the bytearray.split method. # This function emulates buf.split(needle)[0], which is the functionality