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: Remove channels parameter in infer_encoding_types #3564

Merged
merged 3 commits into from
Sep 4, 2024

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 mattijn and binste 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
13 checks passed
@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