Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Autofix error] Autofix error in code with coroutine #3617

Closed
qarmin opened this issue Mar 20, 2023 · 0 comments · Fixed by #3638
Closed

[Autofix error] Autofix error in code with coroutine #3617

qarmin opened this issue Mar 20, 2023 · 0 comments · Fixed by #3638
Labels
bug Something isn't working

Comments

@qarmin
Copy link

qarmin commented Mar 20, 2023

Ruff a45753f

def coroutine(func):
    if _inspect_iscoroutinefunction(func):
        return func

    if not _DEBUG:
        if _types_coroutine is None:
            wrapper = coro
        else:
            wrapper = _types_coroutine(coro)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants