(cls)
| 6744 | |
| 6745 | @classmethod |
| 6746 | def __has_singleton(cls): |
| 6747 | # second case ensures `cls.__singleton` is not just a view on the |
| 6748 | # superclass singleton |
| 6749 | return cls.__singleton is not None and type(cls.__singleton) is cls |
| 6750 | |
| 6751 | def __new__(cls): |
| 6752 | if not cls.__has_singleton(): |
no outgoing calls
no test coverage detected