(self, attr, val)
| 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") |
nothing calls this directly
no outgoing calls
no test coverage detected