add type hint
This commit is contained in:
parent
e494441366
commit
f5ddaef04c
@ -394,7 +394,7 @@ class SidebarItem:
|
|||||||
self.expanded = expanded
|
self.expanded = expanded
|
||||||
self.children: List["SidebarItem"] = []
|
self.children: List["SidebarItem"] = []
|
||||||
self.parentItem: Optional[SidebarItem] = None
|
self.parentItem: Optional[SidebarItem] = None
|
||||||
self.tooltip = None
|
self.tooltip: Optional[str] = None
|
||||||
|
|
||||||
def addChild(self, cb: "SidebarItem") -> None:
|
def addChild(self, cb: "SidebarItem") -> None:
|
||||||
self.children.append(cb)
|
self.children.append(cb)
|
||||||
|
Loading…
Reference in New Issue
Block a user