Make ast.AST a basetype

This commit is contained in:
Noa
2021-08-25 20:03:42 -05:00
parent cde42dba26
commit 7c68ad8a72

View File

@@ -42,7 +42,7 @@ fn get_node_field_opt(
#[derive(Debug, PyValue)]
pub(crate) struct AstNode;
#[pyimpl(flags(HAS_DICT))]
#[pyimpl(flags(BASETYPE, HAS_DICT))]
impl AstNode {
#[pymethod(magic)]
fn init(zelf: PyObjectRef, args: FuncArgs, vm: &VirtualMachine) -> PyResult<()> {