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

Fix pickling of VanillaDataManager #2129

Merged
merged 2 commits into from
Jun 25, 2023

Conversation

jkulhanek
Copy link
Contributor

This PR changes the VanillaDataManager impl. to make the classes truly generic.
It fixes #2102, #1868 (comment).
Note: it uses features available in Python>=3.8, it would totally break for older pythons.

When implementing #1868, we choose a simpler class_getitem impl. over the original implementation suggested in the first commit of #1868. But the simpler impl. breaks pickling support and causes errors in other places (restored yaml objects are not generic). This PR reverts the original implementation.

@jkulhanek
Copy link
Contributor Author

#1868 (comment)

@assafbot, sorry, my bad. Can you please try again with the current version?

@assafbot
Copy link

Works! thanks

Copy link
Contributor

@tancik tancik left a comment

Choose a reason for hiding this comment

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

LGTM

@jkulhanek jkulhanek merged commit ac6a83c into main Jun 25, 2023
4 checks passed
@jkulhanek jkulhanek deleted the jkulhanek/fix-pickle-vanilladatamanager branch June 25, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants