MCPcopy Index your code
hub / github.com/numpy/numpy / __has_singleton

Method __has_singleton

numpy/ma/core.py:6746–6749  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

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():

Callers 3

__array_finalize__Method · 0.95
__setattr__Method · 0.95
__new__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected