Skip to content

Commit 83868f5

Browse files
committed
Remove __doc__ override in objtype
1 parent 841e224 commit 83868f5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

vm/src/obj/objtype.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,7 @@ fn type_new_slot(metatype: PyClassRef, args: PyFuncArgs, vm: &VirtualMachine) ->
321321
bases
322322
};
323323

324-
let mut attributes = dict.to_attributes();
325-
326-
// insert __doc__ as None if it is not included in attributes
327-
if !attributes.contains_key("__doc__") {
328-
attributes.insert("__doc__".to_string(), vm.ctx.none());
329-
}
324+
let attributes = dict.to_attributes();
330325

331326
let mut winner = metatype.clone();
332327
for base in &bases {

0 commit comments

Comments
 (0)