Skip to content

Commit

Permalink
fix: py3.9 err
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Nov 6, 2024
1 parent ceca27f commit d1368fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dooit/ui/widgets/bars/bar_switcher.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Callable
from typing import Callable, Optional
from textual.await_complete import AwaitComplete
from textual.widget import Widget
from textual.widgets import ContentSwitcher
Expand Down Expand Up @@ -36,7 +36,7 @@ def is_focused(self):
return self.current != "status_bar" and self.visible_content.focused

def add_content(
self, widget: Widget, *, id: str | None = None, set_current: bool = False
self, widget: Widget, *, id: Optional[str] = None, set_current: bool = False
) -> AwaitComplete:
try:
self.query_one(f"#{id}", expect_type=BarBase).remove()
Expand Down

0 comments on commit d1368fa

Please sign in to comment.