Skip to content

Commit

Permalink
Remove circular import caused by typing annotations. (#1882)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mansencal <thomas.mansencal@gmail.com>
Signed-off-by: Doug Walker <doug.walker@autodesk.com>
Co-authored-by: Doug Walker <doug.walker@autodesk.com>
  • Loading branch information
KelSolaar and doug-walker committed Oct 29, 2023
1 parent bc8569b commit 1fad466
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/apps/ocioview/ocioview/widgets/list_widget.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenColorIO Project.

from typing import Callable, Optional, Union
from typing import Callable, Optional, TYPE_CHECKING, Union

from PySide2 import QtCore, QtGui, QtWidgets

from ..items.config_item_model import BaseConfigItemModel
from ..utils import SignalsBlocked, next_name
from .item_view import BaseItemView

if TYPE_CHECKING:
from ..items.config_item_model import BaseConfigItemModel

class StringListWidget(BaseItemView):
"""
Expand Down Expand Up @@ -221,7 +222,7 @@ class ItemModelListWidget(BaseItemView):

def __init__(
self,
model: BaseConfigItemModel,
model: "BaseConfigItemModel",
model_column: int,
item_flags: QtCore.Qt.ItemFlags = BaseItemView.DEFAULT_ITEM_FLAGS,
item_icon: Optional[QtGui.QIcon] = None,
Expand Down

0 comments on commit 1fad466

Please sign in to comment.