(self)
| 435 | return self.layout()._repr_mimebundle_() |
| 436 | |
| 437 | def __dir__(self): |
| 438 | current = self._current |
| 439 | if self._method: |
| 440 | current = getattr(current, self._method) |
| 441 | extras = {attr for attr in dir(current) if not attr.startswith('_')} |
| 442 | if is_tabular(current) and hasattr(current, 'columns'): |
| 443 | extras |= set(current.columns) |
| 444 | try: |
| 445 | return sorted(set(super().__dir__()) | extras) |
| 446 | except Exception: |
| 447 | return sorted(set(dir(type(self))) | set(self.__dict__) | extras) |
| 448 | |
| 449 | def _resolve_accessor(self): |
| 450 | if not self._method: |
nothing calls this directly
no test coverage detected