Skip to content

[Autofix error] Autofix error when comparing tuple #3620

@qarmin

Description

@qarmin

Ruff a45753f

def _detect_pathlib_path(p):
	if(3,4)<=sys.version_info:
	    pass

with

ruff file.py --fix
error: Autofix introduced a syntax error. Reverting all changes.

This indicates a bug in `ruff`. If you could open an issue at:

    https://github.com/charliermarsh/ruff/issues/new?title=%5BAutofix%20error%5D

...quoting the contents of `Desktop/RunEveryCommand/Ruff/Broken/45224decoder (20th copy)0.py`, along with the `pyproject.toml` settings and executed command, we'd be very appreciative!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions