diff --git a/CHANGELOG.md b/CHANGELOG.md index d2c5d8047d..8c4c2725bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Content markup can now accept component classes when preceded by a dot, e.g. "Hello [.my_custo_style]World[/]!" https://github.com/Textualize/textual/pull/5981 - Breaking change: `Visual.render_strips` has a new signature. If you aren't explicitly building Visuals then this won't effect you. https://github.com/Textualize/textual/pull/5981 - Breaking change: The component classes on Markdown have been moved to MarkdownBlock. This won't affect you unless you have customize the Markdown CSS https://github.com/Textualize/textual/pull/5981 +- The textual-speedups library will now be imported automatically if it is installed. Set `TEXTUAL_SPEEDUPS=0` to disable. ### Removed diff --git a/src/textual/geometry.py b/src/textual/geometry.py index 3a7ab64d3c..e86c73aeaa 100644 --- a/src/textual/geometry.py +++ b/src/textual/geometry.py @@ -1316,7 +1316,7 @@ def grow_maximum(self, other: Spacing) -> Spacing: ) -if not TYPE_CHECKING and os.environ.get("TEXTUAL_SPEEDUPS") == "1": +if not TYPE_CHECKING and os.environ.get("TEXTUAL_SPEEDUPS", "1") == "1": try: from textual_speedups import Offset, Region, Size, Spacing except ImportError: