From 7fac801936ff2cd5ef1ebdba73559eab2642a2cc Mon Sep 17 00:00:00 2001 From: abdul124 Date: Fri, 10 Jan 2025 11:06:50 +0800 Subject: [PATCH] [artiq] add module primitive type --- nac3artiq/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index 59d4dbed..4174fc8c 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -159,6 +159,7 @@ pub struct PrimitivePythonId { generic_alias: (u64, u64), virtual_id: u64, option: u64, + module: u64, } type TopLevelComponent = (Stmt, String, PyObject); @@ -1097,6 +1098,7 @@ impl Nac3 { tuple: get_attr_id(builtins_mod, "tuple"), exception: get_attr_id(builtins_mod, "Exception"), option: get_id(artiq_builtins.get_item("Option").ok().flatten().unwrap()), + module: get_attr_id(types_mod, "ModuleType"), }; let working_directory = tempfile::Builder::new().prefix("nac3-").tempdir().unwrap();