diff --git a/modin/utils.py b/modin/utils.py index f977ce2cdf0..08277220c15 100644 --- a/modin/utils.py +++ b/modin/utils.py @@ -889,6 +889,6 @@ def reload_modin() -> None: is going to be started up once again. """ modules = sys.modules.copy() - for key, module in modules.items(): - if key.startswith("modin"): + for name, module in modules.items(): + if name.startswith("modin"): importlib.reload(module)