We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a17b0 commit b81853fCopy full SHA for b81853f
vm/src/builtins/mappingproxy.rs
@@ -26,14 +26,6 @@ impl PyPayload for PyMappingProxy {
26
}
27
28
29
-impl PyMappingProxy {
30
- pub fn new(class: PyTypeRef) -> Self {
31
- Self {
32
- mapping: MappingProxyInner::Class(class),
33
- }
34
35
-}
36
-
37
impl From<PyTypeRef> for PyMappingProxy {
38
fn from(dict: PyTypeRef) -> Self {
39
Self {
vm/src/builtins/type.rs
@@ -577,7 +577,7 @@ impl PyType {
577
578
#[pyproperty(magic)]
579
fn dict(zelf: PyRef<Self>) -> PyMappingProxy {
580
- PyMappingProxy::new(zelf)
+ PyMappingProxy::from(zelf)
581
582
583
#[pyproperty(magic, setter)]
0 commit comments