use Initiailizer for PyStaticMethod#3742
Conversation
youknowone
left a comment
There was a problem hiding this comment.
running cargo fmt --all will fix the fmt failure
vm/src/builtins/staticmethod.rs
Outdated
| fn init(zelf: PyRef<Self>, args: Self::Args, vm: &VirtualMachine) -> PyResult<()> { | ||
| zelf.as_object() | ||
| .set_attr("__doc__", args.get_attr("__doc__", vm)?, vm)?; | ||
| // zelf.as_object().set_attr("__format__", args.get_attr("__format__", vm)?, vm); |
There was a problem hiding this comment.
| // zelf.as_object().set_attr("__format__", args.get_attr("__format__", vm)?, vm); |
|
And it seems |
Now that #3747 has been merged, can this be rebased on a fresh copy of the |
9c45229 to
e95efeb
Compare
vm/src/builtins/staticmethod.rs
Outdated
| zelf.as_object() | ||
| .set_attr("__doc__", args.get_attr("__doc__", vm)?, vm)?; |
There was a problem hiding this comment.
this is not a fix. func object need to be replaced, not doc.
e95efeb to
849b81e
Compare
youknowone
left a comment
There was a problem hiding this comment.
no behavior changed but harmless and preparation for next step
No description provided.