pylint-dev / pylint

It's not just a linter that annoys you!
https://pylint.readthedocs.io/en/latest/
GNU General Public License v2.0
5.31k stars 1.13k forks source link

Astroid RecursionError when running pylint scan on pandas.merge #3969

Closed justinessert closed 3 years ago

justinessert commented 3 years ago

I am getting a RecursionError whenever I run a pylint scan on my code. I have narrowed the issue down to a Pandas merge function, though I'm not sure why that would cause an issue. This may be related to Issue 3952, though idk.

Steps to reproduce

  1. Create a file called merge.py with the following code:
import pandas as pd

pd.merge(None, None)
  1. Install the latest versions of pylint, astroid, and pandas.
  2. Run pylint merge.py.

Current behavior

This causes a RecursionError in astroid and does not complete the pylint scan. See stack trace in the drop-down at the bottom.

Expected behavior

To complete the pylint scan without an error.

pylint --version output

pylint 2.6.0 astroid 2.4.2 Python 3.7.7 (default, May 6 2020, 04:59:01)

Also, pandas version is 1.1.5

Stack Trace

Traceback (most recent call last): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 32, in cached return cache[func] KeyError: > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 32, in cached return cache[func] KeyError: > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 32, in cached return cache[func] KeyError: > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 32, in cached return cache[func] KeyError: > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 32, in cached return cache[func] KeyError: > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 32, in cached return cache[func] KeyError: > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 32, in cached return cache[func] KeyError: > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 32, in cached return cache[func] KeyError: > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/hnf396/miniconda3/envs/seg-lvl/bin/pylint", line 8, in sys.exit(run_pylint()) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/__init__.py", line 22, in run_pylint PylintRun(sys.argv[1:]) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/lint/run.py", line 349, in __init__ linter.check(args) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 863, in check self.get_ast, self._iterate_file_descrs(files_or_modules) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 896, in _check_files self._check_file(get_ast, check_astroid_module, name, filepath, modname) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 922, in _check_file check_astroid_module(ast_node) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 1055, in check_astroid_module ast_node, walker, rawcheckers, tokencheckers File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 1099, in _check_astroid_module walker.walk(ast_node) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 75, in walk self.walk(child) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 75, in walk self.walk(child) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 72, in walk callback(astroid) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/checkers/logging.py", line 226, in visit_call result, name = is_logger_class() File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/pylint/checkers/logging.py", line 208, in is_logger_class for inferred in node.func.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 319, in infer_attribute yield from owner.igetattr(self.attrname, context) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from module = self.do_import_module() File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build self.delayed_assattr(delayed) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 226, in delayed_assattr for inferred in node.expr.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 252, in infer_import yield self.do_import_module(self.real_name(name)) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build self.delayed_assattr(delayed) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 226, in delayed_assattr for inferred in node.expr.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 367, in infer_subscript for value in self.value.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 850, in infer_assign stmts = list(self.assigned_stmts(context=context)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 850, in infer_assign stmts = list(self.assigned_stmts(context=context)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from module = self.do_import_module() File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build self.delayed_assattr(delayed) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 226, in delayed_assattr for inferred in node.expr.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 850, in infer_assign stmts = list(self.assigned_stmts(context=context)) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1830, in _class_type if _is_metaclass(klass): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1799, in _is_metaclass for baseobj in base.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from module = self.do_import_module() File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build self.delayed_assattr(delayed) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 226, in delayed_assattr for inferred in node.expr.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from module = self.do_import_module() File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build self.delayed_assattr(delayed) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 226, in delayed_assattr for inferred in node.expr.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from module = self.do_import_module() File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build self.delayed_assattr(delayed) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 226, in delayed_assattr for inferred in node.expr.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 273, in infer_import_from module = self.do_import_module() File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build self.delayed_assattr(delayed) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 226, in delayed_assattr for inferred in node.expr.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 252, in infer_import yield self.do_import_module(self.real_name(name)) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 155, in _post_build self.add_from_names_to_locals(from_node) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 209, in add_from_names_to_locals imported = node.do_import_module() File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 155, in _post_build self.add_from_names_to_locals(from_node) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 209, in add_from_names_to_locals imported = node.do_import_module() File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build self.delayed_assattr(delayed) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 226, in delayed_assattr for inferred in node.expr.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 850, in infer_assign stmts = list(self.assigned_stmts(context=context)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield from generator File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 252, in infer_import yield self.do_import_module(self.real_name(name)) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 162, in _post_build module = self._manager.visit_transforms(module) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/manager.py", line 75, in visit_transforms return self._transform.visit(node) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/transforms.py", line 89, in visit module.body = [self._visit(child) for child in module.body] File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/transforms.py", line 89, in module.body = [self._visit(child) for child in module.body] File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/transforms.py", line 57, in _visit return self._transform(node) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/transforms.py", line 40, in _transform ret = transform_func(node) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/brain/brain_namedtuple_enum.py", line 366, in infer_enum_class new_targets.append(fake.instantiate_class()) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 2399, in instantiate_class if any(cls.name in EXCEPTION_BASE_CLASSES for cls in self.mro()): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 2904, in mro return self._compute_mro(context=context) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 2874, in _compute_mro inferred_bases = list(self._inferred_bases(context=context)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 2861, in _inferred_bases baseobj = next(stmt.infer(context=context)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 252, in infer_import yield self.do_import_module(self.real_name(name)) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 138, in file_build return self._post_build(module, encoding) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 158, in _post_build self.delayed_assattr(delayed) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/builder.py", line 226, in delayed_assattr for inferred in node.expr.infer(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 850, in infer_assign stmts = list(self.assigned_stmts(context=context)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/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/envs/seg-lvl/lib/python3.7/site-packages/astroid/protocols.py", line 414, in _resolve_assignment_parts for part in parts: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 227, in infer_call for callee in self.func.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 293, in infer_attribute for owner in self.expr.infer(context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 96, in wrapped res = next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/bases.py", line 136, in _infer_stmts for inferred in stmt.infer(context=context): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/util.py", line 160, in limit_inference yield from islice(iterator, size) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/context.py", line 113, in cache_generator for result in generator: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 132, in raise_if_nothing_inferred yield next(generator) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 93, in wrapped generator = _func(node, context, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/inference.py", line 850, in infer_assign stmts = list(self.assigned_stmts(context=context)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/protocols.py", line 323, in _arguments_infer_argname functype = self.parent.type File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 72, in __get__ val = self.wrapped(inst) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1461, in type for decorator in self.extra_decorators: File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 72, in __get__ val = self.wrapped(inst) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 1424, in extra_decorators for assign in frame._get_assign_nodes(): File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 34, in cached cache[func] = result = func(*args, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 2927, in _get_assign_nodes return list(itertools.chain.from_iterable(children_assign_nodes)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/scoped_nodes.py", line 2925, in child_node._get_assign_nodes() for child_node in self.body File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 34, in cached cache[func] = result = func(*args, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 153, in _get_assign_nodes return list(itertools.chain.from_iterable(children_assign_nodes)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 151, in for child_node in block File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 34, in cached cache[func] = result = func(*args, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 153, in _get_assign_nodes return list(itertools.chain.from_iterable(children_assign_nodes)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 151, in for child_node in block File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 34, in cached cache[func] = result = func(*args, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 153, in _get_assign_nodes return list(itertools.chain.from_iterable(children_assign_nodes)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 151, in for child_node in block File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 34, in cached cache[func] = result = func(*args, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 153, in _get_assign_nodes return list(itertools.chain.from_iterable(children_assign_nodes)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 151, in for child_node in block File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 34, in cached cache[func] = result = func(*args, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 153, in _get_assign_nodes return list(itertools.chain.from_iterable(children_assign_nodes)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 151, in for child_node in block File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 34, in cached cache[func] = result = func(*args, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 153, in _get_assign_nodes return list(itertools.chain.from_iterable(children_assign_nodes)) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 151, in for child_node in block File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/decorators.py", line 34, in cached cache[func] = result = func(*args, **kwargs) File "/Users/hnf396/miniconda3/envs/seg-lvl/lib/python3.7/site-packages/astroid/mixins.py", line 150, in _get_assign_nodes for block in self._multi_line_blocks RecursionError: maximum recursion depth exceeded
justinessert commented 3 years ago

After some troubleshooting I found that the issue does not occur when using a pandas version < 1.1.x (Specifically I tested 1.0.3 and 1.0.5).

justinessert commented 3 years ago

Does anyone know if there is a specific pylint error that I could disable as an alternative workaround?

ikedaosushi commented 3 years ago

@justinessert Thank you for sharing, your information helped me a lot. I also noticed pandas 1.1.5 was released with a day, and confirmed pandas 1.1.4 doesn't raise the error. https://github.com/pandas-dev/pandas/releases

AndreiRegiani commented 3 years ago

Dirty fix for now: .pylintrc

init-hook='import sys; sys.setrecursionlimit(8 * sys.getrecursionlimit())'
hippo91 commented 3 years ago

@justinessert @ikedaosushi @AndreiRegiani thank you all for your report/comments. I close this issue as it is a duplicate of #3939.