Passed
Push — master ( 302a05...75982b )
by Daniil
01:44
created

singleton   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A SingletonMeta.__call__() 0 4 2
1
class SingletonMeta(type):
2
    _instance = None
3
4
    def __call__(self):
5
        if self._instance is None:
6
            self._instance = super().__call__()
7
        return self._instance
8