diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/rules/path_constructor_current_directory.rs b/crates/ruff_linter/src/rules/flake8_use_pathlib/rules/path_constructor_current_directory.rs index 896ecba970..f8d8830a59 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/rules/path_constructor_current_directory.rs +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/rules/path_constructor_current_directory.rs @@ -33,6 +33,10 @@ use crate::{AlwaysFixableViolation, Applicability, Edit, Fix}; /// _ = Path() /// ``` /// +/// ## Fix safety +/// This fix is marked unsafe if there are comments inside the parentheses, as applying +/// the fix will delete them. +/// /// ## References /// - [Python documentation: `Path`](https://docs.python.org/3/library/pathlib.html#pathlib.Path) #[derive(ViolationMetadata)]