diff --git a/vm/src/obj/objgetset.rs b/vm/src/obj/objgetset.rs index f60c6d3be..3e6f079a6 100644 --- a/vm/src/obj/objgetset.rs +++ b/vm/src/obj/objgetset.rs @@ -245,9 +245,10 @@ impl PyGetSet { } } - // TODO: give getset_descriptors names #[pyproperty(magic)] - fn name(&self) {} + fn name(&self) -> String { + self.name.clone() + } } pub(crate) fn init(context: &PyContext) {