1 parent 96926da commit 12c8af6Copy full SHA for 12c8af6
1 file changed
vm/src/obj/objtype.rs
@@ -25,7 +25,6 @@ use std::ops::Deref;
25
/// type(object) -> the object's type
26
/// type(name, bases, dict) -> a new type
27
#[pyclass(name = "type")]
28
-#[derive(Debug)]
29
pub struct PyClass {
30
pub name: String,
31
pub bases: Vec<PyClassRef>,
@@ -41,6 +40,12 @@ impl fmt::Display for PyClass {
41
40
}
42
43
+impl fmt::Debug for PyClass {
44
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
45
+ write!(f, "[PyClass {}]", &self.name)
46
+ }
47
+}
48
+
49
pub type PyClassRef = PyRef<PyClass>;
50
51
impl PyValue for PyClass {
0 commit comments