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
unused-async
RUF029
.pyi
async def foo() -> int: ... # error: Function `foo` is declared `async`, but doesn't `await` or use `async` features.
this is a stub for a function that returns Coroutine[Any, Any, int]. removing the async will result in an incorrect return type
Coroutine[Any, Any, int]
async
The text was updated successfully, but these errors were encountered:
I think we should omit stubs entirely.
Sorry, something went wrong.
ruff]
[ruff] Ignore stub functions in unused-async (RUF029) (#11026)
06c248a
## Summary We should ignore methods that appear to be stubs, e.g.: ```python async def foo() -> int: ... ``` Closes #11018.
charliermarsh
Successfully merging a pull request may close this issue.
this is a stub for a function that returns
Coroutine[Any, Any, int]
. removing theasync
will result in an incorrect return typeThe text was updated successfully, but these errors were encountered: