Skip to content

[AutoPR] TODO we should consolidate these forward refs with ... #129

Open
@github-actions

Description

@github-actions

TODO we should consolidate these forward refs with their definitions in config.py workflow_service uses this, which is why it's here instead

if value in cls.reserved_keywords:
raise ValueError(f"{value} is a reserved keyword")
return str.__new__(cls, value)
# TODO we should consolidate these forward refs with their definitions in `config.py`
# workflow_service uses this, which is why it's here instead
ExecutableForwardRef = Union[
ExecutableId,
# ControlWords,
ForwardRef("ActionConfigs"), # pyright: ignore[reportGeneralTypeIssues]
ForwardRef("WorkflowInvocation"), # pyright: ignore[reportGeneralTypeIssues]

When resolving this TODO, you can start by identifying all the forward references in your code and their corresponding definitions in config.py. Then, consolidate these forward references with their definitions in config.py to eliminate any duplication. Finally, make sure to update any references to the consolidated definitions in your code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions