(cls)
| 6543 | |
| 6544 | @classmethod |
| 6545 | def __has_singleton(cls): |
| 6546 | # second case ensures `cls.__singleton` is not just a view on the |
| 6547 | # superclass singleton |
| 6548 | return cls.__singleton is not None and type(cls.__singleton) is cls |
| 6549 | |
| 6550 | def __new__(cls): |
| 6551 | if not cls.__has_singleton(): |
no outgoing calls
no test coverage detected