MCPcopy
hub / github.com/celery/celery / __new__

Function __new__

celery/local.py:27–30  ·  view source on GitHub ↗
(cls, getter)

Source from the content-addressed store, hash-verified

25 # -- See Issue #1087.
26
27 def __new__(cls, getter):
28 instance = type_.__new__(cls, cls_value)
29 instance.__getter = getter
30 return instance
31
32 def __get__(self, obj, cls=None):
33 return self.__getter(obj) if obj is not None else self

Callers

nothing calls this directly

Calls 1

__new__Method · 0.45

Tested by

no test coverage detected