(self, item: _KeyType)
| 50 | return Patch(location=self._location + [item], parent=self) |
| 51 | |
| 52 | def __getattr__(self, item: _KeyType) -> "Patch": |
| 53 | if item == "tolist": |
| 54 | # to_json fix |
| 55 | raise AttributeError |
| 56 | if item == "_location": |
| 57 | return self._location # type: ignore |
| 58 | if item == "_operations": |
| 59 | return self._operations # type: ignore |
| 60 | return self.__getitem__(item) |
| 61 | |
| 62 | def __setattr__(self, key: _KeyType, value: Any): |
| 63 | if key in ("_location", "_operations"): |
nothing calls this directly
no test coverage detected