mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add missing return type to HeaderIcon.render
This commit is contained in:
@@ -4,6 +4,7 @@ from datetime import datetime
|
||||
|
||||
from rich.text import Text
|
||||
|
||||
from ..app import RenderResult
|
||||
from ..reactive import Reactive
|
||||
from ..widget import Widget
|
||||
|
||||
@@ -23,7 +24,7 @@ class HeaderIcon(Widget):
|
||||
icon = Reactive("⭘")
|
||||
"""The character to use as the icon within the header."""
|
||||
|
||||
def render(self):
|
||||
def render(self) -> RenderResult:
|
||||
return self.icon
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user