| 50 | |
| 51 | @dataclass |
| 52 | class ObjectWithUpdateWrapper: |
| 53 | obj: Any |
| 54 | update: dict[str, Any] |
| 55 | |
| 56 | def __getattribute__(self, __name: str) -> Any: |
| 57 | update = super().__getattribute__("update") |
| 58 | obj = super().__getattribute__("obj") |
| 59 | if __name in update: |
| 60 | return update[__name] |
| 61 | return getattr(obj, __name) |
| 62 | |
| 63 | |
| 64 | def _is_union_type(t: Any) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…