repr() for this layer and all its parent layers, only useful for debugging.
(self)
| 115 | |
| 116 | @property |
| 117 | def stack_pos(self) -> str: |
| 118 | """repr() for this layer and all its parent layers, only useful for debugging.""" |
| 119 | try: |
| 120 | idx = self.context.layers.index(self) |
| 121 | except ValueError: |
| 122 | return repr(self) |
| 123 | else: |
| 124 | return " >> ".join(repr(x) for x in self.context.layers[: idx + 1]) |
| 125 | |
| 126 | @abstractmethod |
| 127 | def _handle_event(self, event: events.Event) -> CommandGenerator[None]: |