diff --git a/crates/ruff_linter/src/checkers/ast/analyze/expression.rs b/crates/ruff_linter/src/checkers/ast/analyze/expression.rs index 60d3cce5d6..9a6c4b52c9 100644 --- a/crates/ruff_linter/src/checkers/ast/analyze/expression.rs +++ b/crates/ruff_linter/src/checkers/ast/analyze/expression.rs @@ -1046,7 +1046,6 @@ pub(crate) fn expression(expr: &Expr, checker: &Checker) { Rule::PyPath, Rule::Glob, Rule::OsListdir, - Rule::OsSymlink, ]) { flake8_use_pathlib::rules::replaceable_by_pathlib(checker, call); }