MCPcopy Index your code
hub / github.com/python/cpython / setter

Method setter

Lib/test/test_abc.py:237–238  ·  view source on GitHub ↗
(self, callable)

Source from the content-addressed store, hash-verified

235 def getter(self, callable):
236 return Descriptor(callable, self._fget)
237 def setter(self, callable):
238 return Descriptor(self._fget, callable)
239 @property
240 def __isabstractmethod__(self):
241 return (getattr(self._fget, '__isabstractmethod__', False)

Callers

nothing calls this directly

Calls 1

DescriptorClass · 0.70

Tested by

no test coverage detected