Skip to content

[Autofix error] Autofix error with simple almost empty function #3618

@qarmin

Description

@qarmin

Ruff a45753f

class QCameraImageCapture(__PyQt5_QtCore.QObject, QMediaBindableInterface):
    def imageCodecDescription(self, p_str): # real signature unknown; restored from __doc__
        """ imageCodecDescription(self, str) -> str\ """
        return ""

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/3740QCameraImageCapture53.py`, along with the `pyproject.toml` settings and executed command, we'd be very appreciative!

Metadata

Metadata

Assignees

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