mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Fix imports for type hints
This commit is contained in:
parent
20aa98912c
commit
7d9d9a5218
1 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import copy
|
||||
import collections
|
||||
import typing
|
||||
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
|
|
@ -21,6 +22,10 @@ from .product_name import get_product_name
|
|||
from .utils import get_next_versions_for_instances
|
||||
from .legacy_create import LegacyCreator
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
# Avoid cyclic imports
|
||||
from .context import CreateContext, UpdateData
|
||||
|
||||
|
||||
class CreatorError(Exception):
|
||||
"""Should be raised when creator failed because of known issue.
|
||||
|
|
@ -441,7 +446,7 @@ class BaseCreator:
|
|||
"""Store changes of existing instances so they can be recollected.
|
||||
|
||||
Args:
|
||||
update_list(List[UpdateData]): Gets list of tuples. Each item
|
||||
update_list (list[UpdateData]): Gets list of tuples. Each item
|
||||
contain changed instance and it's changes.
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue