From ee5d95f75118aa594c95a1fb6e35c708f46a94cd Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 30 Nov 2023 15:13:29 -0500 Subject: [PATCH] Remove duplicate imports from os-stat documentation (#8930) Closes https://github.com/astral-sh/ruff/issues/8799. --- crates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs b/crates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs index 7e18f8290ed4f..55600d45aceb9 100644 --- a/crates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs +++ b/crates/ruff_linter/src/rules/flake8_use_pathlib/violations.rs @@ -705,8 +705,6 @@ impl Violation for OsReadlink { /// ## Examples /// ```python /// import os -/// -/// import os /// from pwd import getpwuid /// from grp import getgrgid /// @@ -719,8 +717,6 @@ impl Violation for OsReadlink { /// ```python /// from pathlib import Path /// -/// from pathlib import Path -/// /// file_path = Path(file_name) /// stat = file_path.stat() /// owner_name = file_path.owner()