8000 Set `IMMUTABLETYPE` flag for static classes · RustPython/RustPython@23d9424 · GitHub
[go: up one dir, main page]

Skip to content

Commit 23d9424

Browse files
committed
Set IMMUTABLETYPE flag for static classes
1 parent 802e045 commit 23d9424

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

derive-impl/src/pyclass.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,9 @@ fn extract_impl_attrs(attr: AttributeArgs, item: &Ident) -> Result<ExtractedImpl
14971497
.union(::rustpython_vm::types::PyTypeFlags::#ident)
14981498
});
14991499
}
1500+
flags.push(quote! {
1501+
.union(::rustpython_vm::types::PyTypeFlags::IMMUTABLETYPE)
1502+
});
15001503
} else {
15011504
bail_span!(path, "Unknown pyimpl attribute")
15021505
}

0 commit comments

Comments
 (0)
0