Skip to content

Commit

Permalink
Merge pull request #932 from Textualize/doc-serve-error
Browse files Browse the repository at this point in the history
fix error with text-log in docs
  • Loading branch information
willmcgugan authored Oct 17, 2022
2 parents 4f4c0b1 + e6876e9 commit 7c304ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion src/textual/widgets/_text_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def __init__(
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]]
Expand All @@ -51,7 +52,6 @@ def __init__(
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()
Expand Down

0 comments on commit 7c304ad

Please sign in to comment.