MCPcopy Create free account
hub / github.com/dask/dask / __setattr__

Method __setattr__

dask/delayed.py:757–766  ·  view source on GitHub ↗
(self, attr, val)

Source from the content-addressed store, hash-verified

755 return DelayedAttr(self, attr)
756
757 def __setattr__(self, attr, val):
758 try:
759 object.__setattr__(self, attr, val)
760 except AttributeError:
761 # attr is neither in type(self).__slots__ nor in the __slots__ of any of its
762 # parent classes, and all the parent classes define __slots__ too.
763 # This last bit needs to be unit tested: if any of the parent classes omit
764 # the __slots__ declaration, self will gain a __dict__ and this branch will
765 # become unreachable.
766 raise TypeError("Delayed objects are immutable")
767
768 def __setitem__(self, index, val):
769 raise TypeError("Delayed objects are immutable")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected