Skip to content

Commit 5595371

Browse files
authored
Merge pull request #4189 from davep/issue/4188/syntax-warning
Fix syntax warning in `LoadingIndicator` code
2 parents 5d21a0a + 79cbb50 commit 5595371

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## Unreleased
9+
10+
### Fixed
11+
12+
- Fixed the check for animation level in `LoadingIndicator` https://github.com/Textualize/textual/issues/4188
13+
814
## [0.52.0] - 2023-02-19
915

1016
### Changed

src/textual/widgets/_loading_indicator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _on_mount(self, _: Mount) -> None:
5454
self.auto_refresh = 1 / 16
5555

5656
def render(self) -> RenderableType:
57-
if self.app.animation_level is "none":
57+
if self.app.animation_level == "none":
5858
return Text("Loading...")
5959

6060
elapsed = time() - self._start_time

0 commit comments

Comments
 (0)