[ruff] add fix safety section (RUF027) (#17485)
The PR add the `fix safety` section for rule `RUF027` (#15584 ). Actually, I have an example of a false positive. Should I include it in the` fix safety` section? --------- Co-authored-by: Dylan <dylwil3@gmail.com>
This commit is contained in:
@@ -53,6 +53,11 @@ use crate::Locator;
|
||||
/// print(f"Hello {name}! It is {day_of_week} today!")
|
||||
/// ```
|
||||
///
|
||||
/// ## Fix safety
|
||||
///
|
||||
/// This fix will always change the behavior of the program and, despite the precautions detailed
|
||||
/// above, this may be undesired. As such the fix is always marked as unsafe.
|
||||
///
|
||||
/// [logging]: https://docs.python.org/3/howto/logging-cookbook.html#using-particular-formatting-styles-throughout-your-application
|
||||
/// [gettext]: https://docs.python.org/3/library/gettext.html
|
||||
/// [FastAPI path]: https://fastapi.tiangolo.com/tutorial/path-params/
|
||||
|
||||
Reference in New Issue
Block a user