Skip to content

Comments

refactor: Simplify unreachable compound chart cases#3520

Merged
binste merged 9 commits intovega:mainfrom
dangotbanned:simp-compound-charts
Aug 11, 2024
Merged

refactor: Simplify unreachable compound chart cases#3520
binste merged 9 commits intovega:mainfrom
dangotbanned:simp-compound-charts

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
@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