def window(self) -> GatherWindow: """The GatherWindow that this tab belongs to.""" window = self._window() if window is None: raise ba.NotFoundError("GatherTab's window no longer exists.") return window
def _get_entry(self, name: str) -> dict[str, Any]: for entry in self._entries: if entry['name'] == name: return entry raise ba.NotFoundError(f'Entry not found: {name}')