(self, obj)
| 4682 | |
| 4683 | class BadArr2(np.ndarray): |
| 4684 | def __array_finalize__(self, obj): |
| 4685 | if isinstance(obj, BadArr2): |
| 4686 | # outer inserts 1-sized dims. In that case disturb them. |
| 4687 | if self.shape[-1] == 1: |
| 4688 | self.shape = self.shape[::-1] |
| 4689 | |
| 4690 | def __array_prepare__(self, obj, context=None): |
| 4691 | return obj |
nothing calls this directly
no outgoing calls
no test coverage detected