(self)
| 1700 | return getimfunc(self.obj) |
| 1701 | |
| 1702 | def _getobj(self): |
| 1703 | assert self.parent is not None |
| 1704 | if isinstance(self.parent, Class): |
| 1705 | # Each Function gets a fresh class instance. |
| 1706 | parent_obj = self.parent.newinstance() |
| 1707 | else: |
| 1708 | parent_obj = self.parent.obj # type: ignore[attr-defined] |
| 1709 | return getattr(parent_obj, self.originalname) |
| 1710 | |
| 1711 | @property |
| 1712 | def _pyfuncitem(self): |
nothing calls this directly
no test coverage detected