From ad12b7e958a3e780ce30c6e0c3089044e3a2179a Mon Sep 17 00:00:00 2001 From: z78078 Date: Wed, 20 Jul 2022 16:56:41 +0800 Subject: [PATCH] update comment --- nac3artiq/src/lib.rs | 1 + nac3core/src/toplevel/composer.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index 70214d54..2ede61a6 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -281,6 +281,7 @@ impl Nac3 { ComposerConfig { kernel_ann: Some("Kernel"), kernel_invariant_ann: "KernelInvariant" }, ); composer.build_constructor_lookup(self.top_levels.iter().map(|(stmt, _, _)| stmt)); + let builtins = PyModule::import(py, "builtins")?; let typings = PyModule::import(py, "typing")?; let id_fn = builtins.getattr("id")?; diff --git a/nac3core/src/toplevel/composer.rs b/nac3core/src/toplevel/composer.rs index 570cac1d..cc833389 100644 --- a/nac3core/src/toplevel/composer.rs +++ b/nac3core/src/toplevel/composer.rs @@ -37,7 +37,7 @@ pub struct TopLevelComposer { // number of built-in function and classes in the definition list, later skip pub builtin_num: usize, pub core_config: ComposerConfig, - // the HashMap that store the class name and It constructor Function + // the HashMap that store the class name and it's constructor function pub constructor_lookup: HashMap>, }