Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use ast instead of loading for injecting user params #1878

Closed

Conversation

madhur-ob
Copy link
Collaborator

No description provided.

Copy link
Contributor

@romain-intel romain-intel left a comment

Choose a reason for hiding this comment

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

I think we need to find another way to do this. The main reason being that we override parameters and would at the very least have to override this function as well which feels a bit icky. I am also not 100% comfortable with the AST parsing and feel we may miss cases and spend time chasing things (could be wrong but feels less robust).

The main issue is that FlowSpec.init sets the global parameters. Maybe we can focus on that and not do that if we are loading just to evaluate the class. Thoughts?


def construct_parameter(self, node):
all_values = {}
fields = ["name", "default", "type", "help", "required", "show_default"]
Copy link
Contributor

Choose a reason for hiding this comment

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

we use other parameter values so would need something a bit more generic I believe.

@savingoyal savingoyal closed this Jun 18, 2024
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.

None yet

3 participants