mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
[pyupgrade
] Add fix safety section to docs (UP036
) (#17444)
## Summary add fix safety section to outdated_version_block, for #15584
This commit is contained in:
parent
de8f4e62e2
commit
c7372d218d
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,10 @@ use ruff_python_ast::PythonVersion;
|
|||
/// ## Options
|
||||
/// - `target-version`
|
||||
///
|
||||
/// ## Fix safety
|
||||
/// This rule's fix is marked as unsafe because it will remove all code,
|
||||
/// comments, and annotations within unreachable version blocks.
|
||||
///
|
||||
/// ## References
|
||||
/// - [Python documentation: `sys.version_info`](https://docs.python.org/3/library/sys.html#sys.version_info)
|
||||
#[derive(ViolationMetadata)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue