mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove redundant slice operation
This commit is contained in:
@@ -54,7 +54,7 @@ class Sparkline:
|
||||
end = (i + 1) * num_steps + min(i + 1, remainder)
|
||||
partition = data[start:end]
|
||||
if partition:
|
||||
yield data[start:end]
|
||||
yield partition
|
||||
|
||||
def __rich_console__(
|
||||
self, console: Console, options: ConsoleOptions
|
||||
|
||||
Reference in New Issue
Block a user