We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no-name-from-module
1 parent eef4794 commit ad8d88eCopy full SHA for ad8d88e
pylint/checkers/variables.py
@@ -3080,9 +3080,11 @@ def _check_module_attrs(
3080
module = None
3081
break
3082
try:
3083
- module = next(module.getattr(name)[0].infer())
+ module = module.getattr(name)[0]
3084
if not isinstance(module, nodes.Module):
3085
- return None
+ module = next(module.infer())
3086
+ if not isinstance(module, nodes.Module):
3087
+ return None
3088
except astroid.NotFoundError:
3089
# Unable to import `name` from `module`. Since `name` may itself be a
3090
# module, we first check if it matches the ignored modules.
0 commit comments