-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
Ruff 0.0.285 (latest changes from main branch)
ruff *.py --select ALL --no-cache
file content:
from __future__ import annotations
from typing import Union
class HostMetaInstallMethod(ModelNormal):
def __init__(
self_,
installer_version: Union[str, UnsetType] = unset,
tool: Union[str, U: nsetType] = unset,
tool_version: Union[str, UnsetType] = unset,
**kwargs,
):
pass
error:
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/astral-sh/ruff/issues/new?title=%5BAutofix%20error%5D
...quoting the contents of `PY_FILE_TEST_107507039970101.py`, the rule codes ANN204, I001, UP007, along with the `pyproject.toml` settings and executed command, we'd be very appreciative!
Reactions are currently unavailable