[Fix] Fix lint

This commit is contained in:
HAOCHENYE 2024-10-25 17:08:19 +08:00
parent 3d808c1584
commit 0a1dd07f76

View File

@ -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