Skip to content

Commit

Permalink
undo change
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jun 21, 2023
1 parent 2b7784b commit 2e733f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ome_types/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ class OMETree(QTreeWidget):
"""A Widget that can show OME XML."""

def __init__(
self,
ome_dict: Optional[dict] = None,
viewer: Optional["napari.viewer.Viewer"] = None,
parent=None,
self, ome_dict: dict = None, viewer: "napari.viewer.Viewer" = None, parent=None
) -> None:
super().__init__(parent=parent)
self._viewer = viewer
Expand Down Expand Up @@ -115,7 +112,7 @@ def update(self, ome: Union[OME, str]) -> None:
raise TypeError("must be OME object or string")
self._fill_item(_ome.dict(exclude_unset=True))

def _fill_item(self, obj, item: Optional[QTreeWidgetItem] = None):
def _fill_item(self, obj, item: QTreeWidgetItem = None):
if item is None:
self.clear()
item = self.invisibleRootItem()
Expand Down

0 comments on commit 2e733f0

Please sign in to comment.