Skip to content

Commit

Permalink
Fix type annotation in document
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Aug 3, 2021
1 parent 1d2030c commit da1eeb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uwsift/model/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
:copyright: 2015 by University of Wisconsin Regents, see AUTHORS for more details
:license: GPLv3, see LICENSE for more details
"""
from uwsift.model.layer import Mixing, DocLayer, DocBasicLayer, DocRGBLayer, DocCompositeLayer
from __future__ import annotations

__author__ = 'rayg'
__docformat__ = 'reStructuredText'
Expand All @@ -81,6 +81,7 @@
from uwsift.workspace import Workspace
from uwsift.util.default_paths import DOCUMENT_SETTINGS_DIR
from uwsift.model.composite_recipes import RecipeManager, CompositeRecipe
from uwsift.model.layer import Mixing, DocLayer, DocBasicLayer, DocRGBLayer, DocCompositeLayer
from uwsift.view.colormap import COLORMAP_MANAGER, PyQtGraphColormap, SITE_CATEGORY, USER_CATEGORY
from uwsift.queue import TASK_PROGRESS, TASK_DOING
from PyQt5.QtCore import QObject, pyqtSignal
Expand Down Expand Up @@ -450,7 +451,7 @@ def _product_info_under_playhead_for_family(self, family: str) -> typ.Mapping:
"""
raise NotImplementedError("need to consult mdb to get product info dictionary under playhead")

def get_info(self, dex: [int, UUID]):
def get_info(self, dex: list[int, UUID]):
"""return info dictionary with top z-order at 0, going downward
"""
if isinstance(dex, UUID):
Expand Down

0 comments on commit da1eeb5

Please sign in to comment.