Attempt to reduce the size of the pyobject.rs files by splitting out builtin types.

This commit is contained in:
Windel Bouwman
2019-08-14 17:48:54 +02:00
parent 11cbf556e5
commit d06dec77ea
42 changed files with 477 additions and 418 deletions

View File

@@ -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),
});
}