You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Check for object-store instance from other library
49
+
let cls_name = ob
50
+
.getattr(intern!(py,"__class__"))?
51
+
.getattr(intern!(py,"__name__"))?
52
+
.extract::<PyBackedStr>()?;
53
+
if[
54
+
PyAzureStore::NAME,
55
+
PyGCSStore::NAME,
56
+
PyHttpStore::NAME,
57
+
PyLocalStore::NAME,
58
+
PyMemoryStore::NAME,
59
+
PyS3Store::NAME,
60
+
]
61
+
.contains(&cls_name.as_ref())
62
+
{
63
+
returnErr(PyValueError::new_err("You must use an object store instance exported from **the same library** as this function. They cannot be used across libraries.\nThis is because object store instances are compiled with a specific version of Rust and Python."));
0 commit comments