From 118663bd8edadf3b832a6b9b6d8e5d04d3da95e4 Mon Sep 17 00:00:00 2001 From: Nic Ma Date: Fri, 22 Jan 2021 23:27:29 +0800 Subject: [PATCH] [DLMED] fix flake8 issue Signed-off-by: Nic Ma --- monai/utils/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/utils/module.py b/monai/utils/module.py index 4e87e835b1..0e11a6531d 100644 --- a/monai/utils/module.py +++ b/monai/utils/module.py @@ -73,7 +73,7 @@ def load_submodules(basemod, load_all: bool = True, exclude_pattern: str = "(.*[ if (is_pkg or load_all) and name not in sys.modules and match(exclude_pattern, name) is None: try: mod = import_module(name) - importer.find_module(name).load_module(name) + importer.find_module(name).load_module(name) # type: ignore submodules.append(mod) except OptionalImportError: pass # could not import the optional deps., they are ignored