Skip to content

Commit d447e9b

Browse files
committed
fix type hint
1 parent cabc36a commit d447e9b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ayon_api/_api_helpers/attributes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
if typing.TYPE_CHECKING:
1010
from ayon_api.typing import (
1111
AttributeSchemaDataDict,
12-
AttributeSchemaDict,
1312
AttributesSchemaDict,
1413
AttributeScope,
1514
)
@@ -92,7 +91,7 @@ def remove_attribute_config(self, attribute_name: str) -> None:
9291

9392
def get_attributes_for_type(
9493
self, entity_type: AttributeScope
95-
) -> dict[str, AttributeSchemaDict]:
94+
) -> dict[str, AttributeSchemaDataDict]:
9695
"""Get attribute schemas available for an entity type.
9796
9897
Example::

ayon_api/_api_helpers/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
ProjectDict,
1616
StreamType,
1717
AttributeScope,
18+
AttributeSchemaDataDict,
1819
)
1920

2021
_PLACEHOLDER = object()
@@ -134,7 +135,7 @@ def get_user(
134135

135136
def get_attributes_for_type(
136137
self, entity_type: AttributeScope
137-
) -> set[str]:
138+
) -> dict[str, AttributeSchemaDataDict]:
138139
raise NotImplementedError()
139140

140141
def get_attributes_fields_for_type(

0 commit comments

Comments
 (0)