`self._tokens[1]`: `IndexError: list index out of range`
sobolevn opened this issue · 0 comments
sobolevn commented
https://github.com/dry-python/returns/actions/runs/8437642376/job/23107904196?pr=1810
Run poetry run flake8 .
Traceback (most recent call last):
File "/home/runner/work/returns/returns/.venv/lib/python3.11/site-packages/wemake_python_styleguide/checker.py", line 154, in run
visitor.run()
File "/home/runner/work/returns/returns/.venv/lib/python3.11/site-packages/wemake_python_styleguide/visitors/base.py", line 286, in run
self.visit(token)
File "/home/runner/work/returns/returns/.venv/lib/python3.11/site-packages/wemake_python_styleguide/visitors/ast/function_empty_lines.py", line 150, in visit
).analyze()
^^^^^^^^^
File "/home/runner/work/returns/returns/.venv/lib/python3.11/site-packages/wemake_python_styleguide/visitors/ast/function_empty_lines.py", line 114, in analyze
function.name_token(),
^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/returns/returns/.venv/lib/python3.11/site-packages/wemake_python_styleguide/visitors/ast/function_empty_lines.py", line 18, in name_token
return self._tokens[1]
~~~~~~~~~~~~^^^
IndexError: list index out of range