[`flake8-async`] Add fix safety section (`ASYNC116`) (#17497)

## Summary

This PR add the `fix safety` section for rule `ASYNC116` in
`long_sleep_not_forever.rs` for #15584

---------

Co-authored-by: dylwil3 <dylwil3@gmail.com>
This commit is contained in:
Hans 2025-04-26 23:40:51 +08:00 committed by GitHub
parent 45d0634b01
commit a4e225ee8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@ use crate::rules::flake8_async::helpers::AsyncModule;
/// async def func():
/// await trio.sleep_forever()
/// ```
///
/// ## Fix safety
///
/// This fix is marked as unsafe as it changes program behavior.
#[derive(ViolationMetadata)]
pub(crate) struct LongSleepNotForever {
module: AsyncModule,