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
I know Python 3.9 was too recent released but I would like do adopt it in some projects, when I try to run wemake-python-styleguide using the 3.9 version I get the following error:
Traceback (most recent call last):
File "/home/runner/work/returns/returns/.venv/lib/python3.9/site-packages/wemake_python_styleguide/checker.py", line 154, in run
visitor.run()
File "/home/runner/work/returns/returns/.venv/lib/python3.9/site-packages/wemake_python_styleguide/visitors/base.py", line 191, in run
self.visit(self.tree)
File "/home/runner/work/returns/returns/.venv/lib/python3.9/site-packages/wemake_python_styleguide/visitors/base.py", line 186, in visit
return route_visit(self, tree)
File "/home/runner/work/returns/returns/.venv/lib/python3.9/site-packages/wemake_python_styleguide/compat/routing.py", line 36, in route_visit
return getattr(
File "/opt/hostedtoolcache/Python/3.9.0/x64/lib/python3.9/ast.py", line 415, in generic_visit
self.visit(item)
File "/home/runner/work/returns/returns/.venv/lib/python3.9/site-packages/wemake_python_styleguide/visitors/base.py", line 186, in visit
return route_visit(self, tree)
File "/home/runner/work/returns/returns/.venv/lib/python3.9/site-packages/wemake_python_styleguide/compat/routing.py", line 36, in route_visit
return getattr(
File "/home/runner/work/returns/returns/.venv/lib/python3.9/site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py", line 34, in visit_any_function
self._check_function_annotations_complexity(node)
File "/home/runner/work/returns/returns/.venv/lib/python3.9/site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py", line 58, in _check_function_annotations_complexity
self._check_annotations_complexity(node, annotations)
File "/home/runner/work/returns/returns/.venv/lib/python3.9/site-packages/wemake_python_styleguide/visitors/ast/complexity/annotations.py", line 67, in _check_annotations_complexity
complexity = get_annotation_compexity(annotation)
File "/home/runner/work/returns/returns/.venv/lib/python3.9/site-packages/wemake_python_styleguide/logic/complexity/annotations.py", line 36, in get_annotation_compexity
annotation_node.slice.value, # type: ignore
AttributeError: 'Tuple' object has no attribute 'value'
For more information you can see the failed pipeline here
Something weird happened, if I add --bug-report flag everything works 🤔
Bug report
What's wrong
I know Python 3.9 was too recent released but I would like do adopt it in some projects, when I try to run
wemake-python-styleguide
using the 3.9 version I get the following error:For more information you can see the failed pipeline here
Something weird happened, if I add
--bug-report
flag everything works 🤔How is that should be
Should runs without any error with Python 3.9
System information
ubuntu-18.04
flake8 information
Contents of
flake8 --bug-report
:Refs dry-python/returns#663
The text was updated successfully, but these errors were encountered: