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: Simplify SchemaBase repr #3472

Merged
merged 1 commit into from
Jul 13, 2024
Merged

Conversation

dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Jul 11, 2024

This is a relatively minor change, but I think the result is much easier to understand.

There is no observable difference otherwise, confirmed by the tests:

  • test_expression_function_expr
  • test_expression_function_string
  • [doctest] altair.vegalite.v5.api.TopLevelMixin.transform_bin
  • [doctest] altair.vegalite.v5.api.TopLevelMixin.transform_calculate
  • [doctest] altair.vegalite.v5.api.TopLevelMixin.transform_timeunit
  • [doctest] altair.vegalite.v5.api.TopLevelMixin.transform_window

The above were all failing - before I figured out what the brace escaping in the original was up to.

This is a relatively minor change, but I think the result is much easier to understand.

There is no observable difference otherwise, confirmed by the tests:
- test_expression_function_expr
- test_expression_function_string
- [doctest] altair.vegalite.v5.api.TopLevelMixin.transform_bin
- [doctest] altair.vegalite.v5.api.TopLevelMixin.transform_calculate
- [doctest] altair.vegalite.v5.api.TopLevelMixin.transform_timeunit
- [doctest] altair.vegalite.v5.api.TopLevelMixin.transform_window

The above were all failing before I figured out what the brace escaping in the original was up to
Copy link
Contributor

@binste binste left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@binste binste merged commit 53ee187 into vega:main Jul 13, 2024
12 checks passed
@dangotbanned dangotbanned deleted the simplify-repr branch July 13, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants