(self)
| 802 | super().__init_subclass__(**kwargs) |
| 803 | |
| 804 | def __getstate__(self): |
| 805 | state = super().__getstate__() |
| 806 | # Prune the sharing & twinning info to only contain the current group. |
| 807 | state["_shared_axes"] = { |
| 808 | name: self._shared_axes[name].get_siblings(self) |
| 809 | for name in self._axis_names if self in self._shared_axes[name]} |
| 810 | state["_twinned_axes"] = (self._twinned_axes.get_siblings(self) |
| 811 | if self in self._twinned_axes else None) |
| 812 | return state |
| 813 | |
| 814 | def __setstate__(self, state): |
| 815 | # Merge the grouping info back into the global groupers. |
nothing calls this directly
no test coverage detected