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
Traceback (most recent call last):
File "site-packages/wemake_python_styleguide/checker.py", line 154, in run
visitor.run()
File "site-packages/wemake_python_styleguide/visitors/base.py", line 191, in run
self.visit(self.tree)
File "site-packages/wemake_python_styleguide/visitors/base.py", line 186, in visit
return route_visit(self, tree)
File "site-packages/wemake_python_styleguide/compat/routing.py", line 36, in route_visit
return getattr(
File "/usr/local/lib/python3.9/ast.py", line 415, in generic_visit
self.visit(item)
File "site-packages/wemake_python_styleguide/visitors/base.py", line 186, in visit
return route_visit(self, tree)
File "site-packages/wemake_python_styleguide/compat/routing.py", line 36, in route_visit
return getattr(
File "/usr/local/lib/python3.9/ast.py", line 415, in generic_visit
self.visit(item)
File "site-packages/wemake_python_styleguide/visitors/base.py", line 186, in visit
return route_visit(self, tree)
File "site-packages/wemake_python_styleguide/compat/routing.py", line 36, in route_visit
return getattr(
File "site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py", line 28, in visit_any_function
self._check_function_annotations_complexity(node)
File "site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py", line 46, in _check_function_annotations_complexity
self._check_annotations_complexity(node, annotations)
File "site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py", line 55, in _check_annotations_complexity
complexity = get_annotation_complexity(annotation)
File "site-packages/wemake_python_styleguide/logic/complexity/annotations.py", line 38, in get_annotation_complexity
return 1 + get_annotation_complexity(get_slice_expr(annotation_node))
File "site-packages/wemake_python_styleguide/logic/complexity/annotations.py", line 40, in get_annotation_complexity
return max(
File "site-packages/wemake_python_styleguide/logic/complexity/annotations.py", line 41, in <genexpr>
(get_annotation_complexity(node) for node in annotation_node.elts),
File "site-packages/wemake_python_styleguide/logic/complexity/annotations.py", line 31, in get_annotation_complexity
annotation_node = ast.parse( # type: ignore
AttributeError: 'Raise' object has no attribute 'value'
What's wrong
How it should be
--
Flake8 version and plugins
pip information
OS information
Linux rock 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: