@@ -386,3 +386,134 @@ FAST003 Parameter `__debug__` appears in route path, but not in `get_debug` sign
386386267 | ...
387387 |
388388help: Add `__debug__` to function signature
389+
390+ FAST003 [*] Parameter `thing_id` appears in route path, but not in `read_thing_vararg` signature
391+ --> FAST003.py:273:19
392+ |
393+ 272 | # Errors: vararg-only and kwarg-only functions
394+ 273 | @app.get("/things /{thing_id }")
395+ | ^^^^^^^^^^
396+ 274 | async def read_thing_vararg(*query : str ): ...
397+ |
398+ help: Add `thing_id` to function signature
399+ 271 |
400+ 272 | # Errors: vararg-only and kwarg-only functions
401+ 273 | @app.get("/things /{thing_id }")
402+ - async def read_thing_vararg(*query : str ): ...
403+ 274 + async def read_thing_vararg(thing_id , *query : str ): ...
404+ 275 |
405+ 276 | @app.get("/things /{thing_id }")
406+ 277 | async def read_thing_kwarg(**query : str ): ...
407+ note: This is an unsafe fix and may change runtime behavior
408+
409+ FAST003 [*] Parameter `thing_id` appears in route path, but not in `read_thing_kwarg` signature
410+ --> FAST003.py:276:19
411+ |
412+ 274 | async def read_thing_vararg(*query : str ): ...
413+ 275 |
414+ 276 | @app.get("/things /{thing_id }")
415+ | ^^^^^^^^^^
416+ 277 | async def read_thing_kwarg(**query : str ): ...
417+ |
418+ help: Add `thing_id` to function signature
419+ 274 | async def read_thing_vararg(*query : str ): ...
420+ 275 |
421+ 276 | @app.get("/things /{thing_id }")
422+ - async def read_thing_kwarg(**query : str ): ...
423+ 277 + async def read_thing_kwarg(thing_id , **query : str ): ...
424+ 278 |
425+ 279 | @app.get("/things /{thing_id }")
426+ 280 | async def read_thing_vararg_kwarg(*args , **kwargs ): ...
427+ note: This is an unsafe fix and may change runtime behavior
428+
429+ FAST003 [*] Parameter `thing_id` appears in route path, but not in `read_thing_vararg_kwarg` signature
430+ --> FAST003.py:279:19
431+ |
432+ 277 | async def read_thing_kwarg(**query : str ): ...
433+ 278 |
434+ 279 | @app.get("/things /{thing_id }")
435+ | ^^^^^^^^^^
436+ 280 | async def read_thing_vararg_kwarg(*args , **kwargs ): ...
437+ |
438+ help: Add `thing_id` to function signature
439+ 277 | async def read_thing_kwarg(**query : str ): ...
440+ 278 |
441+ 279 | @app.get("/things /{thing_id }")
442+ - async def read_thing_vararg_kwarg(*args , **kwargs ): ...
443+ 280 + async def read_thing_vararg_kwarg(thing_id , *args , **kwargs ): ...
444+ 281 |
445+ 282 | # Errors: positional-only parameter edge cases
446+ 283 | @app.get("/things /{thing_id }")
447+ note: This is an unsafe fix and may change runtime behavior
448+
449+ FAST003 [*] Parameter `thing_id` appears in route path, but not in `read_thing_posonly` signature
450+ --> FAST003.py:283:19
451+ |
452+ 282 | # Errors: positional-only parameter edge cases
453+ 283 | @app.get("/things /{thing_id }")
454+ | ^^^^^^^^^^
455+ 284 | async def read_thing_posonly(query : str , /): ...
456+ |
457+ help: Add `thing_id` to function signature
458+ 281 |
459+ 282 | # Errors: positional-only parameter edge cases
460+ 283 | @app.get("/things /{thing_id }")
461+ - async def read_thing_posonly(query : str , /): ...
462+ 284 + async def read_thing_posonly(query : str , /, thing_id ): ...
463+ 285 |
464+ 286 | @app.get("/things /{thing_id }")
465+ 287 | async def read_thing_posonly_trailing(query : str , /,): ...
466+ note: This is an unsafe fix and may change runtime behavior
467+
468+ FAST003 [*] Parameter `thing_id` appears in route path, but not in `read_thing_posonly_trailing` signature
469+ --> FAST003.py:286:19
470+ |
471+ 284 | async def read_thing_posonly(query : str , /): ...
472+ 285 |
473+ 286 | @app.get("/things /{thing_id }")
474+ | ^^^^^^^^^^
475+ 287 | async def read_thing_posonly_trailing(query : str , /,): ...
476+ |
477+ help: Add `thing_id` to function signature
478+ 284 | async def read_thing_posonly(query : str , /): ...
479+ 285 |
480+ 286 | @app.get("/things /{thing_id }")
481+ - async def read_thing_posonly_trailing(query : str , /,): ...
482+ 287 + async def read_thing_posonly_trailing(query : str , /, thing_id ,): ...
483+ 288 |
484+ 289 | @app.get("/things /{thing_id }")
485+ 290 | async def read_thing_posonly_default(query : str = " " , /): ...
486+ note: This is an unsafe fix and may change runtime behavior
487+
488+ FAST003 Parameter `thing_id` appears in route path, but not in `read_thing_posonly_default` signature
489+ --> FAST003.py:289:19
490+ |
491+ 287 | async def read_thing_posonly_trailing(query : str , /,): ...
492+ 288 |
493+ 289 | @app.get("/things /{thing_id }")
494+ | ^^^^^^^^^^
495+ 290 | async def read_thing_posonly_default(query : str = " " , /): ...
496+ |
497+ help: Add `thing_id` to function signature
498+
499+ FAST003 Parameter `thing_id` appears in route path, but not in `read_thing_posonly_default_trailing` signature
500+ --> FAST003.py:292:19
501+ |
502+ 290 | async def read_thing_posonly_default(query : str = " " , /): ...
503+ 291 |
504+ 292 | @app.get("/things /{thing_id }")
505+ | ^^^^^^^^^^
506+ 293 | async def read_thing_posonly_default_trailing(query : str = " " , /,): ...
507+ |
508+ help: Add `thing_id` to function signature
509+
510+ FAST003 Parameter `thing_id` appears in route path, but not in `read_thing_posonly_with_regular` signature
511+ --> FAST003.py:295:19
512+ |
513+ 293 | async def read_thing_posonly_default_trailing(query : str = " " , /,): ...
514+ 294 |
515+ 295 | @app.get("/things /{thing_id }")
516+ | ^^^^^^^^^^
517+ 296 | async def read_thing_posonly_with_regular(query : str = " " , /, x = None ): ...
518+ |
519+ help: Add `thing_id` to function signature
0 commit comments