-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Is there an existing issue for this?
- I have searched the existing issues.
Please describe the feature you have in mind and explain what the current shortcomings are?
Problem
CreateInstance is a product of creator plugins. To construct it, you need to pass data argument that is currently typed as dict[str, Any] yet there is some logic actually expecting something specific inside.
ayon-core/client/ayon_core/pipeline/create/structures.py
Lines 490 to 492 in 0bcc26d
| data: Dict[str, Any], | |
| creator: "BaseCreator", | |
| transient_data: Optional[Dict[str, Any]] = None, |
We shouldn't use these super-generic and non-descriptive arguments (along with the transient_data that is another argument there).
How would you imagine the implementation of the feature?
This should be probably handled by dataclass or some other clearly defined and typed approach. If this is not enough, we should split CreatedInstance into more blocks.
Are there any labels you wish to add?
- I have added the relevant labels to the enhancement request.
Describe alternatives you've considered:
No response
Additional context:
No response
Metadata
Metadata
Assignees
Labels
No labels