We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4665d93 commit 0c768c8Copy full SHA for 0c768c8
astroid/interpreter/_import/spec.py
@@ -170,7 +170,7 @@ def find_module(
170
# sys.stdlib_module_names was added in Python 3.10
171
if PY310_PLUS:
172
# If the module name matches a stdlib module name, check whether this is a frozen module. Note that
173
- # `find_spec` actually imports the module, so we want to make sure we only run this code
+ # `find_spec` actually imports parent modules, so we want to make sure we only run this code
174
# for stuff that can be expected to be frozen. For now this is only stdlib.
175
if modname in sys.stdlib_module_names or (
176
processed and processed[0] in sys.stdlib_module_names
0 commit comments