Skip to content

Conversation

@talsperre
Copy link
Collaborator

We want to allow extensions to be able to add their own custom parameter types, and to be able to use these custom parameters via the Runner API as well. This PR allows extensions to update the list of "approved" parameter types in the metaflow runner API.

It follows logic similar to get_pinned_conda_libs function.

click_to_python_types = get_click_to_python_types()

# Define a recursive type alias for JSON
JSON = Union[Dict[str, "JSON"], List["JSON"], str, int, float, bool, None]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you can import this also from metaflow/metaflow_config.py??
right now it is defined at two places...

Copy link
Collaborator

@mt-ob mt-ob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but one minor comment...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants