[docs] fix duplicated 'are' in comment for PTH123 rule (#17714)

This commit is contained in:
Hans
2025-04-29 23:58:39 +08:00
committed by GitHub
parent c9a6b1a9d0
commit 7d46579808

View File

@@ -99,7 +99,7 @@ pub(crate) fn replaceable_by_pathlib(checker: &Checker, call: &ExprCall) {
// PTH123
["" | "builtins", "open"] => {
// `closefd` and `opener` are not supported by pathlib, so check if they are
// are set to non-default values.
// set to non-default values.
// https://github.com/astral-sh/ruff/issues/7620
// Signature as of Python 3.11 (https://docs.python.org/3/library/functions.html#open):
// ```text