Skip to content

Commit 06f1374

Browse files
committed
add more missing imports
1 parent 541a1a4 commit 06f1374

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

ayon_api/_api.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
TransferProgress,
3333
ThumbnailContent,
3434
get_default_settings_variant as _get_default_settings_variant,
35+
RepresentationParents,
36+
RepresentationHierarchy,
3537
)
3638

3739
if typing.TYPE_CHECKING:
@@ -4718,7 +4720,8 @@ def get_version_by_id(
47184720
versions.
47194721
47204722
Returns:
4721-
Optional[VersionDict]: Version entity data or None if was not found.
4723+
Optional[VersionDict]: Version entity data or None
4724+
if was not found.
47224725
47234726
"""
47244727
con = get_server_api_connection()
@@ -5202,7 +5205,8 @@ def get_representation_by_id(
52025205
representations.
52035206
52045207
Returns:
5205-
Optional[RepresentationDict]: Queried representation entity or None.
5208+
Optional[RepresentationDict]: Queried representation
5209+
entity or None.
52065210
52075211
"""
52085212
con = get_server_api_connection()
@@ -5256,7 +5260,7 @@ def get_representations_hierarchy(
52565260
product_fields: Optional[Iterable[str]] = None,
52575261
version_fields: Optional[Iterable[str]] = None,
52585262
representation_fields: Optional[Iterable[str]] = None,
5259-
) -> "Dict[str, RepresentationHierarchy]":
5263+
) -> Dict[str, RepresentationHierarchy]:
52605264
"""Find representation with parents by representation id.
52615265
52625266
Representation entity with parent entities up to project.
@@ -5303,7 +5307,7 @@ def get_representation_hierarchy(
53035307
product_fields: Optional[Iterable[str]] = None,
53045308
version_fields: Optional[Iterable[str]] = None,
53055309
representation_fields: Optional[Iterable[str]] = None,
5306-
) -> "Optional[RepresentationHierarchy]":
5310+
) -> Optional[RepresentationHierarchy]:
53075311
"""Find representation parents by representation id.
53085312
53095313
Representation parent entities up to project.
@@ -5343,7 +5347,7 @@ def get_representations_parents(
53435347
folder_fields: Optional[Iterable[str]] = None,
53445348
product_fields: Optional[Iterable[str]] = None,
53455349
version_fields: Optional[Iterable[str]] = None,
5346-
) -> "Dict[str, RepresentationParents]":
5350+
) -> Dict[str, RepresentationParents]:
53475351
"""Find representations parents by representation id.
53485352
53495353
Representation parent entities up to project.

ayon_api/server_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6433,7 +6433,8 @@ def get_version_by_id(
64336433
versions.
64346434
64356435
Returns:
6436-
Optional[VersionDict]: Version entity data or None if was not found.
6436+
Optional[VersionDict]: Version entity data or None
6437+
if was not found.
64376438
64386439
"""
64396440
versions = self.get_versions(
@@ -7087,7 +7088,8 @@ def get_representation_by_id(
70877088
representations.
70887089
70897090
Returns:
7090-
Optional[RepresentationDict]: Queried representation entity or None.
7091+
Optional[RepresentationDict]: Queried representation
7092+
entity or None.
70917093
70927094
"""
70937095
representations = self.get_representations(

0 commit comments

Comments
 (0)