spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.32k stars 1.61k forks source link

code analysis can't work #14588

Closed wuwalter closed 1 year ago

wuwalter commented 3 years ago

Description

What steps will reproduce the problem?

return [self] + list(self.value._get_assign_nodes()) RecursionError: maximum recursion depth exceeded while calling a Python object

Traceback

  File "F:\Spyder\pkgs\astroid\decorators.py", line 32, in cached
    return cache[func]
KeyError: <bound method ClassDef._get_assign_nodes of <ClassDef.DatetimeIndex l.72 at 0x27087f1fa08>>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\Spyder\pkgs\astroid\decorators.py", line 32, in cached
    return cache[func]
KeyError: <bound method MultiLineBlockMixin._get_assign_nodes of <FunctionDef.union_many l.360 at 0x27087fd67c8>>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\Spyder\pkgs\astroid\decorators.py", line 32, in cached
    return cache[func]
KeyError: <bound method MultiLineBlockMixin._get_assign_nodes of <For l.366 at 0x27087644c48>>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\Spyder\pkgs\astroid\decorators.py", line 32, in cached
    return cache[func]
KeyError: <bound method MultiLineBlockMixin._get_assign_nodes of <If l.371 at 0x2708764fc48>>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\Spyder\pkgs\astroid\decorators.py", line 32, in cached
    return cache[func]
KeyError: <bound method MultiLineBlockMixin._get_assign_nodes of <TryExcept l.372 at 0x27087fae448>>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\Spyder\pkgs\astroid\decorators.py", line 32, in cached
    return cache[func]
KeyError: <bound method Assign._get_assign_nodes of <Assign l.373 at 0x27087ffc588>>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 193, in _run_module_as_main
  File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 85, in _run_code
  File "F:\Spyder\pkgs\pylint\__main__.py", line 18, in <module>
    pylint.run_pylint()
  File "F:\Spyder\pkgs\pylint\__init__.py", line 22, in run_pylint
    PylintRun(sys.argv[1:])
  File "F:\Spyder\pkgs\pylint\lint\run.py", line 349, in __init__
    linter.check(args)
  File "F:\Spyder\pkgs\pylint\lint\pylinter.py", line 863, in check
    self.get_ast, self._iterate_file_descrs(files_or_modules)
  File "F:\Spyder\pkgs\pylint\lint\pylinter.py", line 896, in _check_files
    self._check_file(get_ast, check_astroid_module, name, filepath, modname)
  File "F:\Spyder\pkgs\pylint\lint\pylinter.py", line 922, in _check_file
    check_astroid_module(ast_node)
  File "F:\Spyder\pkgs\pylint\lint\pylinter.py", line 1055, in check_astroid_module
    ast_node, walker, rawcheckers, tokencheckers
  File "F:\Spyder\pkgs\pylint\lint\pylinter.py", line 1099, in _check_astroid_module
    walker.walk(ast_node)
  File "F:\Spyder\pkgs\pylint\utils\ast_walker.py", line 75, in walk
    self.walk(child)
  File "F:\Spyder\pkgs\pylint\utils\ast_walker.py", line 72, in walk
    callback(astroid)
  File "F:\Spyder\pkgs\pylint\checkers\variables.py", line 1186, in visit_import
    module = next(_infer_name_module(node, parts[0]))
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 254, in infer_import
    yield self.do_import_module(name)
  File "F:\Spyder\pkgs\astroid\mixins.py", line 100, in do_import_module
    modname, level=level, relative_only=level and level >= 1
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 642, in import_module
    return MANAGER.ast_from_module_name(absmodname)
  File "F:\Spyder\pkgs\astroid\manager.py", line 189, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
  File "F:\Spyder\pkgs\astroid\manager.py", line 98, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
  File "F:\Spyder\pkgs\astroid\builder.py", line 138, in file_build
    return self._post_build(module, encoding)
  File "F:\Spyder\pkgs\astroid\builder.py", line 155, in _post_build
    self.add_from_names_to_locals(from_node)
  File "F:\Spyder\pkgs\astroid\builder.py", line 209, in add_from_names_to_locals
    imported = node.do_import_module()
  File "F:\Spyder\pkgs\astroid\mixins.py", line 100, in do_import_module
    modname, level=level, relative_only=level and level >= 1
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 642, in import_module
    return MANAGER.ast_from_module_name(absmodname)
  File "F:\Spyder\pkgs\astroid\manager.py", line 189, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
  File "F:\Spyder\pkgs\astroid\manager.py", line 98, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
  File "F:\Spyder\pkgs\astroid\builder.py", line 138, in file_build
    return self._post_build(module, encoding)
  File "F:\Spyder\pkgs\astroid\builder.py", line 158, in _post_build
    self.delayed_assattr(delayed)
  File "F:\Spyder\pkgs\astroid\builder.py", line 226, in delayed_assattr
    for inferred in node.expr.infer():
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 850, in infer_assign
    stmts = list(self.assigned_stmts(context=context))
  File "F:\Spyder\pkgs\astroid\protocols.py", line 331, in _arguments_infer_argname
    is_metaclass = isinstance(cls, nodes.ClassDef) and cls.type == "metaclass"
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1830, in _class_type
    if _is_metaclass(klass):
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1799, in _is_metaclass
    for baseobj in base.infer():
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 273, in infer_import_from
    module = self.do_import_module()
  File "F:\Spyder\pkgs\astroid\mixins.py", line 100, in do_import_module
    modname, level=level, relative_only=level and level >= 1
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 642, in import_module
    return MANAGER.ast_from_module_name(absmodname)
  File "F:\Spyder\pkgs\astroid\manager.py", line 189, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
  File "F:\Spyder\pkgs\astroid\manager.py", line 98, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
  File "F:\Spyder\pkgs\astroid\builder.py", line 138, in file_build
    return self._post_build(module, encoding)
  File "F:\Spyder\pkgs\astroid\builder.py", line 158, in _post_build
    self.delayed_assattr(delayed)
  File "F:\Spyder\pkgs\astroid\builder.py", line 226, in delayed_assattr
    for inferred in node.expr.infer():
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 367, in infer_subscript
    for value in self.value.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 227, in infer_call
    for callee in self.func.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 319, in infer_attribute
    yield from owner.igetattr(self.attrname, context)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 273, in infer_import_from
    module = self.do_import_module()
  File "F:\Spyder\pkgs\astroid\mixins.py", line 100, in do_import_module
    modname, level=level, relative_only=level and level >= 1
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 642, in import_module
    return MANAGER.ast_from_module_name(absmodname)
  File "F:\Spyder\pkgs\astroid\manager.py", line 189, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
  File "F:\Spyder\pkgs\astroid\manager.py", line 98, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
  File "F:\Spyder\pkgs\astroid\builder.py", line 138, in file_build
    return self._post_build(module, encoding)
  File "F:\Spyder\pkgs\astroid\builder.py", line 158, in _post_build
    self.delayed_assattr(delayed)
  File "F:\Spyder\pkgs\astroid\builder.py", line 226, in delayed_assattr
    for inferred in node.expr.infer():
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 227, in infer_call
    for callee in self.func.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 319, in infer_attribute
    yield from owner.igetattr(self.attrname, context)
  File "F:\Spyder\pkgs\astroid\bases.py", line 222, in igetattr
    self._wrap_attr(get_attr, context), context, frame=self
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 227, in infer_call
    for callee in self.func.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 252, in infer_import
    yield self.do_import_module(self.real_name(name))
  File "F:\Spyder\pkgs\astroid\mixins.py", line 100, in do_import_module
    modname, level=level, relative_only=level and level >= 1
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 642, in import_module
    return MANAGER.ast_from_module_name(absmodname)
  File "F:\Spyder\pkgs\astroid\manager.py", line 189, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
  File "F:\Spyder\pkgs\astroid\manager.py", line 98, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
  File "F:\Spyder\pkgs\astroid\builder.py", line 138, in file_build
    return self._post_build(module, encoding)
  File "F:\Spyder\pkgs\astroid\builder.py", line 158, in _post_build
    self.delayed_assattr(delayed)
  File "F:\Spyder\pkgs\astroid\builder.py", line 226, in delayed_assattr
    for inferred in node.expr.infer():
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 850, in infer_assign
    stmts = list(self.assigned_stmts(context=context))
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 227, in infer_call
    for callee in self.func.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 227, in infer_call
    for callee in self.func.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 371, in infer_subscript
    for index in self.slice.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 850, in infer_assign
    stmts = list(self.assigned_stmts(context=context))
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 227, in infer_call
    for callee in self.func.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 273, in infer_import_from
    module = self.do_import_module()
  File "F:\Spyder\pkgs\astroid\mixins.py", line 100, in do_import_module
    modname, level=level, relative_only=level and level >= 1
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 642, in import_module
    return MANAGER.ast_from_module_name(absmodname)
  File "F:\Spyder\pkgs\astroid\manager.py", line 189, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
  File "F:\Spyder\pkgs\astroid\manager.py", line 98, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
  File "F:\Spyder\pkgs\astroid\builder.py", line 138, in file_build
    return self._post_build(module, encoding)
  File "F:\Spyder\pkgs\astroid\builder.py", line 158, in _post_build
    self.delayed_assattr(delayed)
  File "F:\Spyder\pkgs\astroid\builder.py", line 226, in delayed_assattr
    for inferred in node.expr.infer():
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\bases.py", line 380, in <genexpr>
    return (Instance(x) if x is not util.Uninferable else x for x in infer)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 850, in infer_assign
    stmts = list(self.assigned_stmts(context=context))
  File "F:\Spyder\pkgs\astroid\protocols.py", line 331, in _arguments_infer_argname
    is_metaclass = isinstance(cls, nodes.ClassDef) and cls.type == "metaclass"
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1830, in _class_type
    if _is_metaclass(klass):
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1799, in _is_metaclass
    for baseobj in base.infer():
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 273, in infer_import_from
    module = self.do_import_module()
  File "F:\Spyder\pkgs\astroid\mixins.py", line 100, in do_import_module
    modname, level=level, relative_only=level and level >= 1
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 642, in import_module
    return MANAGER.ast_from_module_name(absmodname)
  File "F:\Spyder\pkgs\astroid\manager.py", line 189, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
  File "F:\Spyder\pkgs\astroid\manager.py", line 98, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
  File "F:\Spyder\pkgs\astroid\builder.py", line 138, in file_build
    return self._post_build(module, encoding)
  File "F:\Spyder\pkgs\astroid\builder.py", line 158, in _post_build
    self.delayed_assattr(delayed)
  File "F:\Spyder\pkgs\astroid\builder.py", line 226, in delayed_assattr
    for inferred in node.expr.infer():
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 850, in infer_assign
    stmts = list(self.assigned_stmts(context=context))
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 227, in infer_call
    for callee in self.func.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 227, in infer_call
    for callee in self.func.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 371, in infer_subscript
    for index in self.slice.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1722, in infer_call_result
    yield from returnnode.value.infer(context)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 850, in infer_assign
    stmts = list(self.assigned_stmts(context=context))
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 293, in infer_attribute
    for owner in self.expr.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 142, in raise_if_nothing_inferred
    yield from generator
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 227, in infer_call
    for callee in self.func.infer(context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 273, in infer_import_from
    module = self.do_import_module()
  File "F:\Spyder\pkgs\astroid\mixins.py", line 100, in do_import_module
    modname, level=level, relative_only=level and level >= 1
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 642, in import_module
    return MANAGER.ast_from_module_name(absmodname)
  File "F:\Spyder\pkgs\astroid\manager.py", line 189, in ast_from_module_name
    return self.ast_from_file(found_spec.location, modname, fallback=False)
  File "F:\Spyder\pkgs\astroid\manager.py", line 98, in ast_from_file
    return AstroidBuilder(self).file_build(filepath, modname)
  File "F:\Spyder\pkgs\astroid\builder.py", line 138, in file_build
    return self._post_build(module, encoding)
  File "F:\Spyder\pkgs\astroid\builder.py", line 158, in _post_build
    self.delayed_assattr(delayed)
  File "F:\Spyder\pkgs\astroid\builder.py", line 226, in delayed_assattr
    for inferred in node.expr.infer():
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\inference.py", line 233, in infer_call
    yield from callee.infer_call_result(caller=self, context=callcontext)
  File "F:\Spyder\pkgs\astroid\bases.py", line 380, in <genexpr>
    return (Instance(x) if x is not util.Uninferable else x for x in infer)
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 96, in wrapped
    res = next(generator)
  File "F:\Spyder\pkgs\astroid\bases.py", line 136, in _infer_stmts
    for inferred in stmt.infer(context=context):
  File "F:\Spyder\pkgs\astroid\util.py", line 160, in limit_inference
    yield from islice(iterator, size)
  File "F:\Spyder\pkgs\astroid\context.py", line 113, in cache_generator
    for result in generator:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 132, in raise_if_nothing_inferred
    yield next(generator)
  File "F:\Spyder\pkgs\astroid\decorators.py", line 93, in wrapped
    generator = _func(node, context, **kwargs)
  File "F:\Spyder\pkgs\astroid\inference.py", line 850, in infer_assign
    stmts = list(self.assigned_stmts(context=context))
  File "F:\Spyder\pkgs\astroid\protocols.py", line 323, in _arguments_infer_argname
    functype = self.parent.type
  File "F:\Spyder\pkgs\astroid\decorators.py", line 72, in __get__
    val = self.wrapped(inst)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1461, in type
    for decorator in self.extra_decorators:
  File "F:\Spyder\pkgs\astroid\decorators.py", line 72, in __get__
    val = self.wrapped(inst)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 1424, in extra_decorators
    for assign in frame._get_assign_nodes():
  File "F:\Spyder\pkgs\astroid\decorators.py", line 34, in cached
    cache[func] = result = func(*args, **kwargs)
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 2927, in _get_assign_nodes
    return list(itertools.chain.from_iterable(children_assign_nodes))
  File "F:\Spyder\pkgs\astroid\scoped_nodes.py", line 2925, in <genexpr>
    child_node._get_assign_nodes() for child_node in self.body
  File "F:\Spyder\pkgs\astroid\decorators.py", line 34, in cached
    cache[func] = result = func(*args, **kwargs)
  File "F:\Spyder\pkgs\astroid\mixins.py", line 153, in _get_assign_nodes
    return list(itertools.chain.from_iterable(children_assign_nodes))
  File "F:\Spyder\pkgs\astroid\mixins.py", line 151, in <genexpr>
    for child_node in block
  File "F:\Spyder\pkgs\astroid\decorators.py", line 34, in cached
    cache[func] = result = func(*args, **kwargs)
  File "F:\Spyder\pkgs\astroid\mixins.py", line 153, in _get_assign_nodes
    return list(itertools.chain.from_iterable(children_assign_nodes))
  File "F:\Spyder\pkgs\astroid\mixins.py", line 151, in <genexpr>
    for child_node in block
  File "F:\Spyder\pkgs\astroid\decorators.py", line 34, in cached
    cache[func] = result = func(*args, **kwargs)
  File "F:\Spyder\pkgs\astroid\mixins.py", line 153, in _get_assign_nodes
    return list(itertools.chain.from_iterable(children_assign_nodes))
  File "F:\Spyder\pkgs\astroid\mixins.py", line 151, in <genexpr>
    for child_node in block
  File "F:\Spyder\pkgs\astroid\decorators.py", line 34, in cached
    cache[func] = result = func(*args, **kwargs)
  File "F:\Spyder\pkgs\astroid\mixins.py", line 153, in _get_assign_nodes
    return list(itertools.chain.from_iterable(children_assign_nodes))
  File "F:\Spyder\pkgs\astroid\mixins.py", line 151, in <genexpr>
    for child_node in block
  File "F:\Spyder\pkgs\astroid\decorators.py", line 34, in cached
    cache[func] = result = func(*args, **kwargs)
  File "F:\Spyder\pkgs\astroid\node_classes.py", line 1953, in _get_assign_nodes
    return [self] + list(self.value._get_assign_nodes())
RecursionError: maximum recursion depth exceeded while calling a Python object

Versions

Dependencies


# Mandatory:
atomicwrites >=1.2.0            :  1.4.0 (OK)
chardet >=2.0.0                 :  4.0.0 (OK)
cloudpickle >=0.5.0             :  1.6.0 (OK)
diff_match_patch >=20181111     :  20200713 (OK)
intervaltree                    :  None (OK)
IPython >=7.6.0                 :  7.19.0 (OK)
jedi =0.17.2                    :  0.17.2 (OK)
jsonschema >=3.2.0              :  3.2.0 (OK)
keyring >=17.0.0                :  21.5.0 (OK)
nbconvert >=4.0                 :  6.0.7 (OK)
numpydoc >=0.6.0                :  1.1.0 (OK)
paramiko >=2.4.0                :  2.7.2 (OK)
parso =0.7.0                    :  0.7.0 (OK)
pexpect >=4.4.0                 :  4.8.0 (OK)
pickleshare >=0.4               :  0.7.5 (OK)
psutil >=5.3                    :  5.7.3 (OK)
pygments >=2.0                  :  2.7.3 (OK)
pylint >=1.0                    :  2.6.0 (OK)
pyls >=0.36.2;<1.0.0            :  0.36.2 (OK)
pyls_black >=0.4.6              :  0.4.6 (OK)
pyls_spyder >=0.3.0             :  0.3.0 (OK)
qdarkstyle >=2.8                :  2.8.1 (OK)
qtawesome >=0.5.7               :  1.0.2 (OK)
qtconsole >=5.0.1               :  5.0.1 (OK)
qtpy >=1.5.0                    :  1.9.0 (OK)
rtree >=0.8.3                   :  0.9.4 (OK)
setuptools >=39.0.0             :  51.0.0 (OK)
sphinx >=0.6.6                  :  3.3.1 (OK)
spyder_kernels >=1.10.1;<1.11.0 :  1.10.1 (OK)
textdistance >=4.2.0            :  4.2.0 (OK)
three_merge >=0.1.1             :  0.1.1 (OK)
watchdog                        :  1.0.2 (OK)
zmq >=17                        :  20.0.0 (OK)

# Optional:
cython >=0.21                   :  0.29.21 (OK)
matplotlib >=2.0.0              :  3.3.3 (OK)
numpy >=1.7                     :  1.19.3 (OK)
pandas >=1.1.1                  :  1.1.5 (OK)
scipy >=0.17.0                  :  1.5.4 (OK)
sympy >=0.7.3                   :  1.7.1 (OK)
andfoy commented 3 years ago

Hi @wuwalter, thanks for the issue report, is it possible to know which steps did you take to get the aforementioned error?

wuwalter commented 3 years ago

The error pops up when the spyder execute the following codes. Now my project doesn't need these codes, but the code analysis in Spyder always pop out the error page. That results in the stop of the code analysis. I hope the code analysis will not pop the error page. Would you like help me?

Seq_model = Sequential() Seq_model.add(Dense(units=120, input_dim=3, activation="tanh")) Seq_model.add(Dense(units=120, activation="tanh")) Seq_model.add(Dense(units=120, activation="tanh")) Seq_model.add(Dense(units=1, activation="tanh")) Seq_model.compile(optimizer='rmsprop', loss='mse', metrics=['mae']) Seq_model.fit(dX[:, 0:(COLS-1)], dX[:, COLS-1], epochs=500, batch_size=1, verbose=1)

Best regards,

Wu Yuanming

ymwu@uestc.edu.cn

School of Optoelectronic Science and Engineering University of Electronic Science and Technology of China No. 4, North Jianshe Rd., Chengdu, China 610054

From: Edgar Andrés Margffoy Tuay Date: 2021-01-15 03:03 To: spyder-ide/spyder CC: wuwalter; Mention Subject: Re: [spyder-ide/spyder] code analysis can't work (#14588) Hi @wuwalter, thanks for the issue report, is it possible to know which steps did you take to get the aforementioned error? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

andfoy commented 3 years ago

Hi @wuwalter, could you please provide a complete reproducible set of instructions that produce this error? From the description, it seems that you are using a Deep Learning framework, however, it is not clear how we can reproduce this error

ccordoba12 commented 1 year ago

Closing due to lack of response.