Skip to content

CreatedInstance data argument ambiguity #1304

@antirotor

Description

@antirotor

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.

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions