@@ -173,7 +173,7 @@ def _read_request_response_json(request_response: str | bytes) -> Response:
173
173
async def _request_win32 (
174
174
name : str ,
175
175
request_arguments : str ,
176
- timeout : int | None = None , # noqa: TRIO109
176
+ timeout : int | None = None , # noqa: ASYNC109
177
177
) -> Response :
178
178
"""Request from daemon on windows."""
179
179
@@ -211,7 +211,7 @@ async def _receive(
211
211
async def _request_linux (
212
212
filename : str ,
213
213
request_arguments : str ,
214
- timeout : float | None = None , # noqa: TRIO109
214
+ timeout : float | None = None , # noqa: ASYNC109
215
215
) -> Response :
216
216
def find_frame_in_buffer (
217
217
buffer : bytearray ,
@@ -271,7 +271,7 @@ async def request(
271
271
status_file : str ,
272
272
command : str ,
273
273
* ,
274
- timeout : int | None = None , # noqa: TRIO109
274
+ timeout : int | None = None , # noqa: ASYNC109
275
275
** kwds : object ,
276
276
) -> Response :
277
277
"""Send a request to the daemon.
@@ -317,7 +317,7 @@ async def stop(status_file: str) -> Response:
317
317
318
318
async def _wait_for_server (
319
319
status_file : str ,
320
- timeout : float = 5.0 , # noqa: TRIO109
320
+ timeout : float = 5.0 , # noqa: ASYNC109
321
321
) -> bool :
322
322
"""Wait until the server is up. Return False if timed out."""
323
323
try :
@@ -417,7 +417,7 @@ async def start(
417
417
async def status (
418
418
status_file : str ,
419
419
* ,
420
- timeout : int = 5 , # noqa: TRIO109
420
+ timeout : int = 5 , # noqa: ASYNC109
421
421
fswatcher_dump_file : str | None = None ,
422
422
) -> Response :
423
423
"""Ask daemon to return status."""
@@ -433,7 +433,7 @@ async def run(
433
433
status_file : str ,
434
434
* ,
435
435
flags : list [str ],
436
- timeout : int | None = None , # noqa: TRIO109
436
+ timeout : int | None = None , # noqa: ASYNC109
437
437
daemon_timeout : int = 0 ,
438
438
log_file : str | None = None ,
439
439
export_types : bool = False ,
@@ -495,7 +495,7 @@ async def check(
495
495
status_file : str ,
496
496
files : Sequence [str ],
497
497
* ,
498
- timeout : int | None = None , # noqa: TRIO109
498
+ timeout : int | None = None , # noqa: ASYNC109
499
499
export_types : bool = False ,
500
500
) -> Response :
501
501
"""Ask the daemon to check a list of files."""
@@ -512,7 +512,7 @@ async def recheck(
512
512
status_file : str ,
513
513
export_types : bool ,
514
514
* ,
515
- timeout : int | None = None , # noqa: TRIO109
515
+ timeout : int | None = None , # noqa: ASYNC109
516
516
remove : list [str ] | None = None ,
517
517
update : list [str ] | None = None ,
518
518
) -> Response :
@@ -551,7 +551,7 @@ async def inspect(
551
551
location : str , # line:col
552
552
show : str = "type" , # type, attrs, definition
553
553
* ,
554
- timeout : int | None = None , # noqa: TRIO109
554
+ timeout : int | None = None , # noqa: ASYNC109
555
555
verbosity : int = 0 ,
556
556
limit : int = 0 ,
557
557
include_span : bool = False ,
@@ -582,7 +582,7 @@ async def suggest(
582
582
function : str ,
583
583
do_json : bool ,
584
584
* ,
585
- timeout : int | None = None , # noqa: TRIO109
585
+ timeout : int | None = None , # noqa: ASYNC109
586
586
callsites : bool = False ,
587
587
no_errors : bool = False ,
588
588
no_any : bool = False ,
@@ -609,7 +609,7 @@ async def suggest(
609
609
async def hang (
610
610
status_file : str ,
611
611
* ,
612
- timeout : int = 1 , # noqa: TRIO109
612
+ timeout : int = 1 , # noqa: ASYNC109
613
613
) -> Response :
614
614
"""Hang for 100 seconds, as a debug hack."""
615
615
if not isinstance (timeout , int ):
0 commit comments