We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 162af78 commit 1ae5943Copy full SHA for 1ae5943
CHANGES.md
@@ -1,6 +1,9 @@
1
1.4.1 (in development)
2
======================
3
4
+- Restore compat with loading dynamic classes pickled with cloudpickle
5
+ version 1.2.1 that would reference the `types.ClassType` attribute.
6
+ ([PR #359](https://github.com/cloudpipe/cloudpickle/pull/359))
7
8
9
1.4.0
cloudpickle/cloudpickle.py
@@ -388,6 +388,11 @@ def _cell_set_factory(value):
388
389
390
def _builtin_type(name):
391
+ if name == "ClassType": # pragma: no cover
392
+ # Backward compat to load pickle files generated with cloudpickle
393
+ # < 1.3 even if loading pickle files from older versions is not
394
+ # officially supported.
395
+ return type
396
return getattr(types, name)
397
398
0 commit comments