-
Notifications
You must be signed in to change notification settings - Fork 167
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
Incorrect deserialization of subclasses, module changed to types
#468
Comments
Indeed I confirm the |
This happens because we don't save attributes which have the same value in the parent class (see the code here). In particular, this means we don't save I currently patch cloudpickle with:
|
Would you mind submitting a PR with a non-regression test? |
Indeed, this issue was not fixed (knowingly) by #448, see #448 (comment). I'll get it done ASAP. |
This issue is similar to #440 but I have verified it still happens after the fix (on latest master).
Somehow the deserialized subclass has
__module__
oftypes
instead of__main__
. This also happen when the classes are moved to their separate files.See the following repro script:
My output on Python 3.7 f758eb3
The text was updated successfully, but these errors were encountered: