We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16e6bf9 commit 4151e18Copy full SHA for 4151e18
10 - object creation/singleton.py
@@ -2,7 +2,7 @@ class Singleton(type):
2
_instances = {}
3
def __call__(cls, *args, **kwargs):
4
if cls not in cls._instances:
5
- cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
+ cls._instances[cls] = super().__call__(*args, **kwargs)
6
return cls._instances[cls]
7
8
class Logger(metaclass=Singleton):
0 commit comments