ruff/crates/ruff_linter/resources
qdegraaf 9a8400a287
Avoid raising TRIO115 violations for trio.sleep(...) calls with non-number values (#8532)
## Summary

Fixes bug in `TRIO115` where it would not `return` for values that were
not a `NumberLiteral` so
```python
x = "bla"
trio.sleep(x)
```
would set off a false positive

## Test Plan

Added test case to fixture
2023-11-06 16:49:12 -06:00
..
test Avoid raising TRIO115 violations for trio.sleep(...) calls with non-number values (#8532) 2023-11-06 16:49:12 -06:00