-
- Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Milestone
Description
Steps to reproduce
git clone https://github.com/dagster-io/dagster.git && cd dagsterpylint -j 0 `git ls-files 'python_modules/libraries/*.py'` --rcfile=.pylintrc(this also reproes with-j 1)
Current behavior
multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/Users/nate/.pyenv/versions/3.7.6/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/check_parallel.py", line 69, in _worker_check_single_file _worker_linter.check_single_file(name, filepath, modname) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 890, in check_single_file self.get_ast, check_astroid_module, name, filepath, modname File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 930, in _check_file check_astroid_module(ast_node) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 1063, in check_astroid_module ast_node, walker, rawcheckers, tokencheckers File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 1107, in _check_astroid_module walker.walk(ast_node) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 75, in walk self.walk(child) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 75, in walk self.walk(child) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/utils/ast_walker.py", line 72, in walk callback(astroid) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/checkers/typecheck.py", line 1036, in visit_assign self._check_assignment_from_function_call(node) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/checkers/typecheck.py", line 1072, in _check_assignment_from_function_call function_node.nodes_of_class(astroid.Return, skip_klass=astroid.FunctionDef) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/astroid/node_classes.py", line 692, in nodes_of_class yield from child_node.nodes_of_class(klass, skip_klass) AttributeError: 'list' object has no attribute 'nodes_of_class' """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/Users/nate/.pyenv/versions/dagster37/bin/pylint", line 8, in <module> sys.exit(run_pylint()) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/__init__.py", line 22, in run_pylint PylintRun(sys.argv[1:]) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/run.py", line 344, in __init__ linter.check(args) File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/pylinter.py", line 878, in check files_or_modules, File "/Users/nate/.pyenv/versions/3.7.6/envs/dagster37/lib/python3.7/site-packages/pylint/lint/check_parallel.py", line 101, in check_parallel _worker_check_single_file, files File "/Users/nate/.pyenv/versions/3.7.6/lib/python3.7/multiprocessing/pool.py", line 748, in next raise value AttributeError: 'list' object has no attribute 'nodes_of_class' Expected behavior
This completed successfully on pylint 2.4.4
pylint --version output
pylint 2.5.2 astroid 2.4.1 Python 3.7.6 (default, Mar 11 2020, 08:11:45) [Clang 11.0.0 (clang-1100.0.33.17)]