diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index 59b3a91d..61c3ecad 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -75,7 +75,7 @@ pub struct PrimitivePythonId { list: u64, tuple: u64, typevar: u64, - const_generic_dummy: u64, + const_generic_marker: u64, none: u64, exception: u64, generic_alias: (u64, u64), @@ -871,7 +871,7 @@ impl Nac3 { .extract() .unwrap(), typevar: get_attr_id(typing_mod, "TypeVar"), - const_generic_dummy: id_fn + const_generic_marker: id_fn .call1(( builtins_mod.getattr("globals") .and_then(|v| v.call0()) diff --git a/nac3artiq/src/symbol_resolver.rs b/nac3artiq/src/symbol_resolver.rs index bb5f6b09..3c50d4b3 100644 --- a/nac3artiq/src/symbol_resolver.rs +++ b/nac3artiq/src/symbol_resolver.rs @@ -353,7 +353,7 @@ impl InnerResolver { for i in 0usize.. { if let Ok(constr) = constraints.get_item(i) { let constr_id: u64 = self.helper.id_fn.call1(py, (constr,))?.extract(py)?; - if constr_id == self.primitive_ids.const_generic_dummy { + if constr_id == self.primitive_ids.const_generic_marker { is_const_generic = true; continue }