Return the instance dict used by the object. Under normal circumstances, this is always synonymous with the ``__dict__`` attribute of the mapped object, unless an alternative instrumentation system has been configured. In the case that the actual object has
(self)
| 568 | |
| 569 | @property |
| 570 | def dict(self) -> _InstanceDict: |
| 571 | """Return the instance dict used by the object. |
| 572 | |
| 573 | Under normal circumstances, this is always synonymous |
| 574 | with the ``__dict__`` attribute of the mapped object, |
| 575 | unless an alternative instrumentation system has been |
| 576 | configured. |
| 577 | |
| 578 | In the case that the actual object has been garbage |
| 579 | collected, this accessor returns a blank dictionary. |
| 580 | |
| 581 | """ |
| 582 | o = self.obj() |
| 583 | if o is not None: |
| 584 | return base.instance_dict(o) |
| 585 | else: |
| 586 | return {} |
| 587 | |
| 588 | def _initialize_instance(*mixed: Any, **kwargs: Any) -> None: |
| 589 | self, instance, args = mixed[0], mixed[1], mixed[2:] # noqa |
no outgoing calls