MCPcopy
hub / github.com/django/django / new_method_proxy

Function new_method_proxy

django/utils/functional.py:248–256  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

246
247
248def new_method_proxy(func):
249 def inner(self, *args):
250 if (_wrapped := self._wrapped) is empty:
251 self._setup()
252 _wrapped = self._wrapped
253 return func(_wrapped, *args)
254
255 inner._mask_wrapped = False
256 return inner
257
258
259class LazyObject:

Callers 2

LazyObjectClass · 0.85
SimpleLazyObjectClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected