Call method for the singleton metaclass.
(cls, *args, **kwargs)
| 61 | _instances = {} |
| 62 | |
| 63 | def __call__(cls, *args, **kwargs): |
| 64 | """Call method for the singleton metaclass.""" |
| 65 | if cls not in cls._instances: |
| 66 | cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) |
| 67 | return cls._instances[cls] |
nothing calls this directly
no outgoing calls
no test coverage detected