add type hint

This commit is contained in:
Damien Elmes 2019-12-21 16:44:38 +10:00 committed by GitHub
parent e494441366
commit f5ddaef04c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)