Skip to content

Comments

refactor: Remove channels parameter in infer_encoding_types#3564

Merged
binste merged 3 commits intovega:mainfrom
dangotbanned:remove-infer-encode-channels
Sep 4, 2024
Merged

refactor: Remove channels parameter in infer_encoding_types#3564
binste merged 3 commits intovega:mainfrom
dangotbanned:remove-infer-encode-channels

Conversation

@dangotbanned
Copy link
Member

@dangotbanned dangotbanned commented Sep 1, 2024

Was kept, but only needed for tests since #3444.

This PR factors out the test dependency, by using pytest.MonkeyPatch - to temporarily replace the global cache.

As alt.utils.core.infer_encoding_types is not public API - this is a safe remove, no need for deprecation.

Removes the dependency in `test_infer_encoding_types`
Was kept, but only needed for tests since vega#3444.
As `infer_encoding_types` is not public API - this is a safe remove, no need for deprecation
@dangotbanned dangotbanned requested review from binste and mattijn and removed request for mattijn September 1, 2024 13:49
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! Agree that monkey patching is a better way of handling this instaed of having code in Altair which is only used in tests

@binste binste merged commit 5207768 into vega:main Sep 4, 2024
@dangotbanned dangotbanned deleted the remove-infer-encode-channels branch September 4, 2024 09:03
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