You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi when I use flake8, I'm getting this exception AssertionError: Unexpected node type: <class 'ast.Subscript'>. I notice the error on version 23.2.13 and 23.3.12. When I revert back to 23.1.20 the error goes away.
Stack Trace
Expand
multiprocessing.pool.RemoteTraceback:
"""Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/multiprocessing/pool.py", line 48, in mapstar return list(map(*args)) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/flake8/checker.py", line 621, in _run_checks return checker.run_checks() File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/flake8/checker.py", line 531, in run_checks self.run_ast_checks() File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/flake8/checker.py", line 435, in run_ast_checks for (line_number, offset, text, _) in runner: File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 61, in run visitor.visit(self.tree) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 336, in visit super().visit(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/ast.py", line 407, in visit return visitor(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 417, in visit_Module self.generic_visit(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/ast.py", line 415, in generic_visit self.visit(item) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 336, in visit super().visit(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/ast.py", line 407, in visit return visitor(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 482, in visit_ClassDef self.generic_visit(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/ast.py", line 415, in generic_visit self.visit(item) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 336, in visit super().visit(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/ast.py", line 407, in visit return visitor(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 475, in visit_FunctionDef self.generic_visit(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/ast.py", line 415, in generic_visit self.visit(item) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 336, in visit super().visit(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/ast.py", line 407, in visit return visitor(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 487, in visit_Try self.generic_visit(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/ast.py", line 415, in generic_visit self.visit(item) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 336, in visit super().visit(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/ast.py", line 407, in visit return visitor(node) File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 360, in visit_ExceptHandler names = [_to_name_str(e) for e in good_handlers] File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 360, in <listcomp> names = [_to_name_str(e) for e in good_handlers] File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 259, in _to_name_str return _to_name_str(node.value) + "." + node.attr File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 259, in _to_name_str return _to_name_str(node.value) + "." + node.attr File "/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/bugbear.py", line 257, in _to_name_str assert isinstance(node, ast.Attribute), f"Unexpected node type: {type(node)}"AssertionError: Unexpected node type: <class 'ast.Subscript'>"""Theaboveexceptionwasthedirectcauseofthefollowingexception:
Traceback (mostrecentcalllast):
File"/opt/hostedtoolcache/Python/3.9.16/x64/bin/flake8", line8, in<module>sys.exit(main())
File"/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/flake8/main/cli.py", line22, inmainapp.run(argv)
File"/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/flake8/main/application.py", line336, inrunself._run(argv)
File"/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/flake8/main/application.py", line325, in_runself.run_checks()
File"/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/flake8/main/application.py", line229, inrun_checksself.file_checker_manager.run()
File"/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/flake8/checker.py", line250, inrunself.run_parallel()
File"/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/flake8/checker.py", line217, inrun_parallelforretinpool_map:
File"/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/multiprocessing/pool.py", line448, in<genexpr>return (itemforchunkinresultforiteminchunk)
File"/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/multiprocessing/pool.py", line870, innextraisevalueAssertionError: Unexpectednodetype: <class'ast.Subscript'>
The text was updated successfully, but these errors were encountered:
Hi when I use flake8, I'm getting this exception
AssertionError: Unexpected node type: <class 'ast.Subscript'>
. I notice the error on version23.2.13
and23.3.12
. When I revert back to23.1.20
the error goes away.Stack Trace
Expand
The text was updated successfully, but these errors were encountered: