mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 12:25:10 +00:00
[flake8-async] fix detection for large integer sleep durations in ASYNC116 rule (#18767)
Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
parent
55a2ff91c7
commit
06da2c808f
3 changed files with 47 additions and 8 deletions
|
|
@ -128,3 +128,11 @@ async def test_trio_async116_helpers():
|
|||
|
||||
await trio.sleep(seconds=86401) # ASYNC116
|
||||
await trio.sleep(delay=86401) # OK
|
||||
|
||||
|
||||
async def _():
|
||||
import trio
|
||||
from trio import sleep
|
||||
|
||||
await sleep(18446744073709551616)
|
||||
await trio.sleep(99999999999999999999)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue