Skip to content

Commit d8f149d

Browse files
committed
refine
1 parent 6f79324 commit d8f149d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/textual/renderables/_blend_colors.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ def blend_colors(color1: Color, color2: Color, ratio: float) -> Color:
1515
Returns:
1616
A Color representing the blending of the two supplied colors.
1717
"""
18-
# assert color1.triplet is not None
19-
# assert color2.triplet is not None
2018
if color1.triplet is None or color2.triplet is None:
2119
return color2
2220
r1, g1, b1 = color1.triplet

src/textual/widget.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,8 @@ def _scroll_to(
23742374
animator.force_stop_animation(self, "scroll_x")
23752375
animator.force_stop_animation(self, "scroll_y")
23762376

2377-
def _animate_on_complete():
2377+
def _animate_on_complete() -> None:
2378+
"""set last scroll time, and invoke callback."""
23782379
self._last_scroll_time = monotonic()
23792380
if on_complete is not None:
23802381
self.call_next(on_complete)

0 commit comments

Comments
 (0)