mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
Attempt to reduce the size of the pyobject.rs files by splitting out builtin types.
This commit is contained in:
@@ -25,7 +25,7 @@ impl PyModuleRef {
|
||||
}
|
||||
|
||||
pub fn init(context: &PyContext) {
|
||||
extend_class!(&context, &context.module_type, {
|
||||
extend_class!(&context, &context.types.module_type, {
|
||||
"__init__" => context.new_rustfunc(PyModuleRef::init),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user