diff --git a/doc/changelog.md b/doc/changelog.md index a1bca3ade..8ffc73c5e 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -97,6 +97,8 @@ Detailed Notes ([SmartSim-PR738](https://github.com/CrayLabs/SmartSim/pull/738)) - Removes an undocumented and unused dependency from the testing suite. ([SmartSim-PR792](https://github.com/CrayLabs/SmartSim/pull/792)) +- Address potential type errors in SmartSim. + ([SmartSim-PR798](https://github.com/CrayLabs/SmartSim/pull/798)) ### 0.8.0 diff --git a/pyproject.toml b/pyproject.toml index d5e797d42..19925ab9a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -131,7 +131,6 @@ module = [ "keras", "torch", "smartsim.ml.torch.*", # must solve/ignore inheritance issues - "watchdog", "dragon.*", ] ignore_missing_imports = true diff --git a/smartsim/entity/model.py b/smartsim/entity/model.py index 0cd37b6a8..93ed9f3c5 100644 --- a/smartsim/entity/model.py +++ b/smartsim/entity/model.py @@ -460,8 +460,8 @@ def _stringify_id(_id: int) -> str: return ",".join(_stringify_id(i) for i in range(cpus)) if not pin_ids: return None - pin_ids = ((x,) if isinstance(x, int) else x for x in pin_ids) - to_fmt = itertools.chain.from_iterable(pin_ids) + pin_ids_ = ((x,) if isinstance(x, int) else x for x in pin_ids) + to_fmt = itertools.chain.from_iterable(pin_ids_) return ",".join(sorted({_stringify_id(x) for x in to_fmt})) def params_to_args(self) -> None: