refactor(scroll): no assert in _extended_strip

An assert vanishes under python -O (Codacy); a real check says the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chuck
2026-09-30 20:26:12 -04:00
co-authored by Claude Opus 5.5
parent 04cad60259
commit 3973f0c3c5
+3 -1
View File
@@ -752,7 +752,9 @@ class ScrollHelper:
def _extended_strip(self, addition: np.ndarray) -> np.ndarray:
"""The strip with ``addition`` after it, written in place when it fits."""
live = self.cached_array
assert live is not None
if live is None:
# append_content builds a first strip itself and never comes here.
raise RuntimeError("no strip to extend")
width = live.shape[1]
added = addition.shape[1]
buffer = self._strip_buffer