mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
pystruct_sequence uses make_class_with_base
This commit is contained in:
1 parent
df5948e2db
commit
0b59f20d96
1 file changed
+2
-3
@@ -265,9 +265,8 @@ pub(crate) fn impl_pystruct_sequence(
|
||||
fn make_class(
|
||||
ctx: &::rustpython_vm::pyobject::PyContext,
|
||||
) -> ::rustpython_vm::obj::objtype::PyClassRef {
|
||||
let py_class = Self::create_bare_type(&ctx.type_type(), &ctx.tuple_type());
|
||||
Self::extend_class(ctx, &py_class);
|
||||
py_class
|
||||
use crate::pyobject::PyClassDef;
|
||||
Self::make_class_with_base(ctx, Self::NAME, &ctx.tuple_type())
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user