mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
[Fix] Fix lint
This commit is contained in:
parent
3d808c1584
commit
0a1dd07f76
@ -168,7 +168,8 @@ def _is_builtin_module(module_name: str) -> bool:
|
||||
return True
|
||||
if module_name in sys.builtin_module_names:
|
||||
return True
|
||||
if sys.version_info >= (3, 10) and module_name in sys.stdlib_module_names():
|
||||
if sys.version_info >= (
|
||||
3, 10) and module_name in sys.stdlib_module_names():
|
||||
return True
|
||||
spec = find_spec(module_name.split('.')[0])
|
||||
# Module not found
|
||||
|
Loading…
x
Reference in New Issue
Block a user