Skip to content

Commit f85ffd2

Browse files
authored
Use implciit property name
1 parent 1deb59c commit f85ffd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/builtins/pytype.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ impl PyType {
404404
vm.ctx.not_implemented()
405405
}
406406

407-
#[pyproperty(name = "__name__")]
407+
#[pyproperty]
408408
fn __name__(&self) -> String {
409409
self.name().to_string()
410410
}

0 commit comments

Comments
 (0)