From 06281a57ee77fdc6416587cf3656b0aff586a72d Mon Sep 17 00:00:00 2001 From: Justin Myers Date: Fri, 26 Apr 2024 14:11:01 -0700 Subject: [PATCH] Use standard super() for __new__ --- adafruit_esp32spi/adafruit_esp32spi_socketpool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_esp32spi/adafruit_esp32spi_socketpool.py b/adafruit_esp32spi/adafruit_esp32spi_socketpool.py index c67ef36..2f7ca78 100644 --- a/adafruit_esp32spi/adafruit_esp32spi_socketpool.py +++ b/adafruit_esp32spi/adafruit_esp32spi_socketpool.py @@ -46,7 +46,7 @@ class SocketPool(SocketPoolContants): def __new__(cls, iface: ESP_SPIcontrol): # We want to make sure to return the same pool for the same interface if iface not in _global_socketpool: - _global_socketpool[iface] = object.__new__(cls) + _global_socketpool[iface] = super().__new__(cls) return _global_socketpool[iface] def __init__(self, iface: ESP_SPIcontrol):