MCPcopy
hub / github.com/django/django / _setup

Method _setup

django/utils/functional.py:305–311  ·  view source on GitHub ↗

Must be implemented by subclasses to initialize the wrapped object.

(self)

Source from the content-addressed store, hash-verified

303 delattr(self._wrapped, name)
304
305 def _setup(self):
306 """
307 Must be implemented by subclasses to initialize the wrapped object.
308 """
309 raise NotImplementedError(
310 "subclasses of LazyObject must provide a _setup() method"
311 )
312
313 # Because we have messed with __class__ below, we confuse pickle as to what
314 # class we are pickling. We're going to have to initialize the wrapped

Callers 6

__setattr__Method · 0.95
__delattr__Method · 0.95
__reduce__Method · 0.95
charsMethod · 0.45
wordsMethod · 0.45
innerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected