mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
LoaderSelectedType is public
This commit is contained in:
parent
8da213c566
commit
e30738d79b
2 changed files with 7 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from .loader import (
|
||||
LoaderSelectedType,
|
||||
LoaderActionForm,
|
||||
LoaderActionResult,
|
||||
LoaderActionItem,
|
||||
|
|
@ -27,7 +28,8 @@ from .inventory import (
|
|||
)
|
||||
|
||||
|
||||
__all__= (
|
||||
__all__ = (
|
||||
"LoaderSelectedType",
|
||||
"LoaderActionForm",
|
||||
"LoaderActionResult",
|
||||
"LoaderActionItem",
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@ from ayon_core.pipeline.plugin_discover import discover_plugins
|
|||
|
||||
_PLACEHOLDER = object()
|
||||
|
||||
class EntityType(StrEnum):
|
||||
|
||||
class LoaderSelectedType(StrEnum):
|
||||
"""Selected entity type."""
|
||||
# folder = "folder"
|
||||
# task = "task"
|
||||
|
|
@ -294,7 +295,7 @@ class LoaderActionSelection:
|
|||
self,
|
||||
project_name: str,
|
||||
selected_ids: set[str],
|
||||
selected_type: EntityType,
|
||||
selected_type: LoaderSelectedType,
|
||||
*,
|
||||
project_anatomy: Optional[Anatomy] = None,
|
||||
project_settings: Optional[dict[str, Any]] = None,
|
||||
|
|
@ -528,7 +529,7 @@ class LoaderActionsContext:
|
|||
plugin_identifier: str,
|
||||
action_identifier: str,
|
||||
entity_ids: set[str],
|
||||
entity_type: EntityType,
|
||||
entity_type: LoaderSelectedType,
|
||||
selection: LoaderActionSelection,
|
||||
attribute_values: dict[str, Any],
|
||||
) -> Optional[LoaderActionResult]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue