From 7c68ad8a72f160d0e99cdbae30e4beb3c15e09f7 Mon Sep 17 00:00:00 2001 From: Noa <33094578+coolreader18@users.noreply.github.com> Date: Wed, 25 Aug 2021 20:03:42 -0500 Subject: [PATCH] Make ast.AST a basetype --- vm/src/stdlib/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/stdlib/ast.rs b/vm/src/stdlib/ast.rs index 8a1acd0f5d..ee56d7a850 100644 --- a/vm/src/stdlib/ast.rs +++ b/vm/src/stdlib/ast.rs @@ -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<()> {