[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:
chiri 2025-06-19 12:37:20 +03:00 committed by GitHub
parent 55a2ff91c7
commit 06da2c808f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 47 additions and 8 deletions

View file

@ -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)