You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue seems to be related to astroid, so I tried reverting my pylint version back to 2.3.1 and keeping my astroid version at 2.4 and this also failed.
So the issue seems to be related to astroid 2.4.0. Unfortunately I am not able to share the repo that I'm running pylint on and I was not able to reproduce the error on a very simple dummy project.
Could you help me narrow down what is causing this issue? I am very unclear as to what in my code is causing this issue, if you could help me find that, I might be able to construct a dummy project that causes the same error.
Traceback (most recent call last):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/__init__.py", line 93, in _inference_tip_cached
return iter(_cache[func, node])
KeyError: (<function register_builtin_transform.<locals>._transform_wrapper at 0x10d1da620>, <Call l.69 at 0x10d5c8a90>)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 182, in getattr
values = self._proxied.instance_attr(name, context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 2388, in instance_attr
target=self, attribute=name, context=context
astroid.exceptions.AttributeInferenceError: 'values' not found on <ClassDef.SparseSeries l.38 at 0x10eaafeb8>.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 220, in igetattr
get_attr = self.getattr(name, context, lookupclass=False)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 194, in getattr
) from exc
astroid.exceptions.AttributeInferenceError: 'values' not found on <Instance of pandas.core.sparse.series.SparseSeries at 0x4541085680>.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 182, in getattr
values = self._proxied.instance_attr(name, context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 2388, in instance_attr
target=self, attribute=name, context=context
astroid.exceptions.AttributeInferenceError: '_block' not found on <ClassDef.SingleBlockManager l.1435 at 0x110084630>.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 220, in igetattr
get_attr = self.getattr(name, context, lookupclass=False)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 194, in getattr
) from exc
astroid.exceptions.AttributeInferenceError: '_block' not found on <Instance of pandas.core.internals.managers.SingleBlockManager at 0x4556485576>.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/hnf396/miniconda3/bin/pylint", line 8, in <module>
sys.exit(run_pylint())
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/__init__.py", line 22, in run_pylint
PylintRun(sys.argv[1:])
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/lint/run.py", line 338, in __init__
linter.check(args)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 871, in check
self.get_ast, self._iterate_file_descrs(files_or_modules)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 904, in _check_files
self._check_file(get_ast, check_astroid_module, name, filepath, modname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 930, in _check_file
check_astroid_module(ast_node)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 1063, in check_astroid_module
ast_node, walker, rawcheckers, tokencheckers
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 1107, in _check_astroid_module
walker.walk(ast_node)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 75, in walk
self.walk(child)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 75, in walk
self.walk(child)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 75, in walk
self.walk(child)
[Previous line repeated 2 more times]
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 72, in walk
callback(astroid)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/pylint/checkers/typecheck.py", line 1623, in visit_unaryop
for error in node.type_errors():
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/node_classes.py", line 4416, in type_errors
for result in results
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/node_classes.py", line 4415, in <listcomp>
result
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 491, in _infer_unaryop
for operand in self.operand.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/node_classes.py", line 357, in infer
return self._explicit_inference(self, context, **kwargs)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/__init__.py", line 95, in _inference_tip_cached
result = func(*args, **kwargs)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/brain/brain_builtin_inference.py", line 135, in _transform_wrapper
result = transform(node, context=context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/brain/brain_builtin_inference.py", line 674, in infer_isinstance
class_or_tuple_node, context=context
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/brain/brain_builtin_inference.py", line 693, in _class_or_tuple_to_container
node_infer = next(node.infer(context=context))
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 319, in infer_attribute
yield from owner.igetattr(self.attrname, context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped
generator = _func(node, context, **kwargs)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from
module = self.do_import_module()
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/mixins.py", line 100, in do_import_module
modname, level=level, relative_only=level and level >= 1
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 642, in import_module
return MANAGER.ast_from_module_name(absmodname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/manager.py", line 189, in ast_from_module_name
return self.ast_from_file(found_spec.location, modname, fallback=False)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/manager.py", line 98, in ast_from_file
return AstroidBuilder(self).file_build(filepath, modname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build
return self._post_build(module, encoding)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build
self.delayed_assattr(delayed)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 225, in delayed_assattr
for inferred in node.expr.infer():
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call
for callee in self.func.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute
for owner in self.expr.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped
generator = _func(node, context, **kwargs)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 850, in infer_assign
stmts = list(self.assigned_stmts(context=context))
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/protocols.py", line 391, in assign_assigned_stmts
self.value.infer(context), assign_path, context
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/protocols.py", line 414, in _resolve_assignment_parts
for part in parts:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute
for owner in self.expr.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute
for owner in self.expr.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call
for callee in self.func.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute
for owner in self.expr.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped
generator = _func(node, context, **kwargs)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 850, in infer_assign
stmts = list(self.assigned_stmts(context=context))
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/protocols.py", line 331, in _arguments_infer_argname
is_metaclass = isinstance(cls, nodes.ClassDef) and cls.type == "metaclass"
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1830, in _class_type
if _is_metaclass(klass):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1799, in _is_metaclass
for baseobj in base.infer():
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped
generator = _func(node, context, **kwargs)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from
module = self.do_import_module()
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/mixins.py", line 100, in do_import_module
modname, level=level, relative_only=level and level >= 1
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 642, in import_module
return MANAGER.ast_from_module_name(absmodname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/manager.py", line 189, in ast_from_module_name
return self.ast_from_file(found_spec.location, modname, fallback=False)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/manager.py", line 98, in ast_from_file
return AstroidBuilder(self).file_build(filepath, modname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build
return self._post_build(module, encoding)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build
self.delayed_assattr(delayed)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 225, in delayed_assattr
for inferred in node.expr.infer():
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call
for callee in self.func.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 319, in infer_attribute
yield from owner.igetattr(self.attrname, context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped
generator = _func(node, context, **kwargs)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from
module = self.do_import_module()
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/mixins.py", line 100, in do_import_module
modname, level=level, relative_only=level and level >= 1
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 642, in import_module
return MANAGER.ast_from_module_name(absmodname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/manager.py", line 189, in ast_from_module_name
return self.ast_from_file(found_spec.location, modname, fallback=False)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/manager.py", line 98, in ast_from_file
return AstroidBuilder(self).file_build(filepath, modname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build
return self._post_build(module, encoding)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build
self.delayed_assattr(delayed)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 225, in delayed_assattr
for inferred in node.expr.infer():
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call
for callee in self.func.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 233, in infer_call
yield from callee.infer_call_result(caller=self, context=callcontext)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1722, in infer_call_result
yield from returnnode.value.infer(context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped
generator = _func(node, context, **kwargs)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from
module = self.do_import_module()
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/mixins.py", line 100, in do_import_module
modname, level=level, relative_only=level and level >= 1
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 642, in import_module
return MANAGER.ast_from_module_name(absmodname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/manager.py", line 189, in ast_from_module_name
return self.ast_from_file(found_spec.location, modname, fallback=False)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/manager.py", line 98, in ast_from_file
return AstroidBuilder(self).file_build(filepath, modname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build
return self._post_build(module, encoding)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build
self.delayed_assattr(delayed)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 225, in delayed_assattr
for inferred in node.expr.infer():
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 319, in infer_attribute
yield from owner.igetattr(self.attrname, context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 232, in igetattr
yield from self._wrap_attr(attrs, context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 238, in _wrap_attr
for attr in attrs:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 2553, in igetattr
caller=self, context=context
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1722, in infer_call_result
yield from returnnode.value.infer(context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 233, in infer_call
yield from callee.infer_call_result(caller=self, context=callcontext)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1722, in infer_call_result
yield from returnnode.value.infer(context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call
for callee in self.func.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute
for owner in self.expr.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 319, in infer_attribute
yield from owner.igetattr(self.attrname, context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 232, in igetattr
yield from self._wrap_attr(attrs, context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 238, in _wrap_attr
for attr in attrs:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 2553, in igetattr
caller=self, context=context
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1722, in infer_call_result
yield from returnnode.value.infer(context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 405, in infer_subscript
yield from assigned.infer(context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 233, in infer_call
yield from callee.infer_call_result(caller=self, context=callcontext)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1722, in infer_call_result
yield from returnnode.value.infer(context)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred
yield from generator
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call
for callee in self.func.infer(context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped
res = next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts
for inferred in stmt.infer(context=context):
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference
yield from islice(iterator, size)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator
for result in generator:
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred
yield next(generator)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped
generator = _func(node, context, **kwargs)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from
module = self.do_import_module()
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/mixins.py", line 100, in do_import_module
modname, level=level, relative_only=level and level >= 1
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 642, in import_module
return MANAGER.ast_from_module_name(absmodname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/manager.py", line 189, in ast_from_module_name
return self.ast_from_file(found_spec.location, modname, fallback=False)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/manager.py", line 98, in ast_from_file
return AstroidBuilder(self).file_build(filepath, modname)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 137, in file_build
module = self._data_build(data, modname, path)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/builder.py", line 190, in _data_build
module = builder.visit_module(node, modname, node_file, package)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 165, in visit_module
newnode.postinit([self.visit(child, newnode) for child in node.body])
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 165, in <listcomp>
newnode.postinit([self.visit(child, newnode) for child in node.body])
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 177, in visit
return visit_method(node, parent)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 455, in visit_classdef
[self.visit(child, newnode) for child in node.body],
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 455, in <listcomp>
[self.visit(child, newnode) for child in node.body],
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 177, in visit
return visit_method(node, parent)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 676, in visit_functiondef
return self._visit_functiondef(nodes.FunctionDef, node, parent)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 666, in _visit_functiondef
body=[self.visit(child, newnode) for child in node.body],
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 666, in <listcomp>
body=[self.visit(child, newnode) for child in node.body],
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 177, in visit
return visit_method(node, parent)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 721, in visit_if
self.visit(node.test, newnode),
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 177, in visit
return visit_method(node, parent)
File "/Users/hnf396/miniconda3/lib/python3.7/site-packages/astroid/rebuilder.py", line 394, in visit_boolop
self._bool_op_classes[type(node.op)], node.lineno, node.col_offset, parent
KeyError: <class '_ast.And'>
The text was updated successfully, but these errors were encountered:
Hey Pylint Team,
I started getting an Astroid KeyError after I upgraded pylint to 2.5.0 (stack trace below).
Though this older version seems to be working just fine:
This issue seems to be related to astroid, so I tried reverting my pylint version back to 2.3.1 and keeping my astroid version at 2.4 and this also failed.
So the issue seems to be related to astroid 2.4.0. Unfortunately I am not able to share the repo that I'm running pylint on and I was not able to reproduce the error on a very simple dummy project.
Could you help me narrow down what is causing this issue? I am very unclear as to what in my code is causing this issue, if you could help me find that, I might be able to construct a dummy project that causes the same error.
The text was updated successfully, but these errors were encountered: