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 unreachable compound chart cases #3520

Merged
merged 9 commits into from
Aug 11, 2024

Conversation

dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Aug 4, 2024

Fixes #3518

Related

Note

See links in 1fdfe90 (#3520) for more info on the ValueError -> TypeError.
It is a subclass so this doesn't affect anything downstream, and is more consistent with stdlib definition.

@dangotbanned dangotbanned changed the title refactor: Simplify unreachable compond chart cases refactor: Simplify unreachable compound chart cases Aug 4, 2024
Reaching `_check_if_can_be_layered` requires passing `_check_if_valid_subspec` - which already raises if not `SchemaBase`
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.

Thanks!

@binste binste merged commit e8edae6 into vega:main Aug 11, 2024
13 checks passed
@dangotbanned dangotbanned deleted the simp-compound-charts branch August 11, 2024 07:55
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.

Potentially simplify _check_if_valid_subspec and _check_if_can_be_layered
3 participants