diff --git a/src/yuheng/__init__.py b/src/yuheng/__init__.py index ffd2f14..7a4c07a 100644 --- a/src/yuheng/__init__.py +++ b/src/yuheng/__init__.py @@ -44,7 +44,11 @@ def __set_attrib(attrib: Dict[str, str], key: str, value): if value is not None: attrib[key] = str(value) - @staticmethod + # @staticmethod + + import numba + + @numba.jit(force_obj=False, loof_left=False, nopython=False) def insert_to_dict(spec_dict, element_list): for i in element_list: spec_dict[int(i.id)] = i