Merge pull request #932 from Textualize/doc-serve-error

fix error with text-log in docs
This commit is contained in:
Will McGugan
2022-10-17 11:46:20 +01:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -25,13 +25,13 @@ You can install Textual via PyPI.
If you plan on developing Textual apps, then you should install `textual[dev]`. The `[dev]` part installs a few extra dependencies for development.
```
pip install "textual[dev]==0.2.0b5"
pip install "textual[dev]==0.2.0b6"
```
If you only plan on _running_ Textual apps, then you can drop the `[dev]` part:
```
pip install textual==0.2.0b5
pip install textual==0.2.0b6
```
!!! important

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "textual"
version = "0.2.0b5"
version = "0.2.0b6"
homepage = "https://github.com/Textualize/textual"
description = "Modern Text User Interface framework"
authors = ["Will McGugan <will@textualize.io>"]

View File

@@ -42,6 +42,7 @@ class TextLog(ScrollView, can_focus=True):
id: str | None = None,
classes: str | None = None,
) -> None:
super().__init__(name=name, id=id, classes=classes)
self.max_lines = max_lines
self.lines: list[list[Segment]] = []
self._line_cache: LRUCache[tuple[int, int, int, int], list[Segment]]
@@ -51,7 +52,6 @@ class TextLog(ScrollView, can_focus=True):
self.wrap = wrap
self.highlight = highlight
self.highlighter = ReprHighlighter()
super().__init__(name=name, id=id, classes=classes)
def _on_styles_updated(self) -> None:
self._line_cache.clear()