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

[MINOR] Python API: removal of enum output_type #2119

Closed
wants to merge 1 commit into from

Conversation

e-strauss
Copy link
Contributor

this PR removes the redundant information about the datatype from the python DAGNodes, the datatype can be instead inferred from the instance class and the value type directly from the Java object

@e-strauss e-strauss marked this pull request as draft September 24, 2024 20:55
@e-strauss e-strauss force-pushed the value_type_enum branch 2 times, most recently from 5d1d1f2 to e244d90 Compare September 24, 2024 22:29
@e-strauss e-strauss marked this pull request as ready for review September 24, 2024 23:20
Comment on lines -78 to -82
def code_line(self, var_name: str, unnamed_input_vars: Sequence[str],
named_input_vars: Dict[str, str]) -> str:
code_line = super().code_line(var_name, unnamed_input_vars, named_input_vars)
return code_line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed since we call anyways the super class method, so no need to overwrite imo

Comment on lines 183 to 186

def data_type(self):
return "operation_node"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can be removed, artefact from an older approach

Copy link
Contributor

Choose a reason for hiding this comment

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

if we can remove it, lets.

@e-strauss e-strauss changed the title [WIP] Python API: removal of enum output_type [MINOR] Python API: removal of enum output_type Sep 25, 2024
Copy link
Contributor

@Baunsgaard Baunsgaard left a comment

Choose a reason for hiding this comment

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

LGTM, if the tests pass, then feel free to merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants