Skip to content

Commit

Permalink
fix typehint import
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jun 24, 2024
1 parent 05f2328 commit 4dbb713
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions client/ayon_core/tools/publisher/abstract.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
from abc import ABC, abstractmethod
from typing import Optional, Dict, List, Tuple, Any, Callable, Union, Iterable
from typing import (
Optional,
Dict,
List,
Tuple,
Any,
Callable,
Union,
Iterable,
TYPE_CHECKING,
)

from ayon_core.lib import AbstractAttrDef
from ayon_core.host import HostBase
Expand All @@ -12,7 +22,8 @@
TaskTypeItem,
)

from .models import CreatorItem
if TYPE_CHECKING:
from .models import CreatorItem


class CardMessageTypes:
Expand Down Expand Up @@ -248,7 +259,7 @@ def are_folder_paths_valid(self, folder_paths: Iterable[str]) -> bool:

# --- Create ---
@abstractmethod
def get_creator_items(self) -> Dict[str, CreatorItem]:
def get_creator_items(self) -> Dict[str, "CreatorItem"]:
"""Creator items by identifier.
Returns:
Expand Down

0 comments on commit 4dbb713

Please sign in to comment.