Skip to content

Commit

Permalink
Merge pull request #155 from kraanzu/develop
Browse files Browse the repository at this point in the history
fix: replace `Type|None` with `Optional[Type]` (closes #145)
  • Loading branch information
kraanzu authored Oct 25, 2023
2 parents 6ed163a + e363daa commit 9b7817d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dooit/ui/widgets/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import Optional
from textual.widget import Widget
from dooit.ui.events.events import ChangeStatus, Notify, StatusType
from dooit.utils.keybinder import KeyBinder, KeyList
Expand All @@ -12,9 +13,9 @@ class KeyWidget(Widget):
def __init__(
self,
*children: Widget,
name: str | None = None,
id: str | None = None,
classes: str | None = None,
name: Optional[str] = None,
id: Optional[str] = None,
classes: Optional[str] = None,
disabled: bool = False
) -> None:
super().__init__(
Expand Down

0 comments on commit 9b7817d

Please sign in to comment.