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

Refactor: fix mutation bug in Column.to_dot, simplify Dot.build #2196

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

georgesittas
Copy link
Collaborator

No description provided.

Comment on lines -3798 to +3799
a, b, *expressions = expressions
dot = Dot(this=a, expression=b)

for expression in expressions:
dot = Dot(this=dot, expression=expression)

return dot
return t.cast(Dot, reduce(lambda x, y: Dot(this=x, expression=y), expressions))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

i don't like this syntax

@tobymao tobymao merged commit 7ae5a94 into main Sep 12, 2023
@tobymao tobymao deleted the jo/dot_build_refactor branch September 12, 2023 15:54
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.

2 participants