Merge pull request #2249 from youknowone/getset-name

__name__ of getset descriptor
This commit is contained in:
Noah authored and GitHub committed 2020-10-01 10:38:37 -05:00
commit f8cb2f31ab
1 file changed
+3 -2
+3 -2
View File
@@ -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) {