Skip to content

Commit 0f13583

Browse files
committed
fix(header): add compose return type
1 parent 8d78427 commit 0f13583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textual/widgets/_header.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from rich.text import Text
88

9-
from textual.app import RenderResult
9+
from textual.app import ComposeResult, RenderResult
1010
from textual.dom import NoScreen
1111
from textual.events import Click, Mount
1212
from textual.reactive import Reactive
@@ -181,7 +181,7 @@ def __init__(
181181
if time_format is not None:
182182
self.time_format = time_format
183183

184-
def compose(self):
184+
def compose(self) -> ComposeResult:
185185
yield HeaderIcon().data_bind(Header.icon)
186186
yield HeaderTitle()
187187
yield (

0 commit comments

Comments
 (0)