We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"""silence D100""" async def afoo() -> None: """silence D103""" return lambda: await afoo()
$ ruff check --select=ALL foo.py [...] All checks passed!
$ python foo.py File "/tmp/ruff/foo.py", line 6 return lambda: await afoo() ^^^^^^^^^^^^ SyntaxError: 'await' outside async function
$ ruff --version ruff 0.9.3
The text was updated successfully, but these errors were encountered:
Upstream pylint does catch this:
$ pylint --disable=C0104 foo.py ************* Module foo foo.py:4:19: E1142: 'await' should be used within an async function (await-outside-async)
Sorry, something went wrong.
This seems to be related to #11934.
I also reported a similar issue a few months back with #14167
No branches or pull requests
Description
The text was updated successfully, but these errors were encountered: