Skip to content

Commit

Permalink
Use standard super() for __new__
Browse files Browse the repository at this point in the history
  • Loading branch information
justmobilize committed Apr 26, 2024
1 parent 35fd193 commit 06281a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_esp32spi/adafruit_esp32spi_socketpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 06281a5

Please sign in to comment.