discarded_futures lint giving false positives #59318
Labels
devexp-linter
Issues with the analyzer's support for the linter package
legacy-area-analyzer
Use area-devexp instead.
linter-false-positive
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Describe the issue
discarded_futures giving false positives when the future is used as a class argument.
To Reproduce
But this is fine
Expected behavior
The lint should only happen if the future value is not awaited, returned, or passed as an argument.
The text was updated successfully, but these errors were encountered: