From f428bd5052b9729cb25be4dd74c703308695edab Mon Sep 17 00:00:00 2001 From: bersbersbers <12128514+bersbersbers@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:23:03 +0200 Subject: [PATCH] Docs: mention `lint.typing-modules` in `TCH001`, `TCH002`, `TCH003` (#11144) ## Summary Mention `lint.typing-modules` in `TCH001`, `TCH002`, `TCH003`; close #11142. --- .../flake8_type_checking/rules/typing_only_runtime_import.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ruff_linter/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs b/crates/ruff_linter/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs index 75d8f54450438..27d7542b1ecfd 100644 --- a/crates/ruff_linter/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs +++ b/crates/ruff_linter/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs @@ -67,6 +67,7 @@ use crate::rules::isort::{categorize, ImportSection, ImportType}; /// - `lint.flake8-type-checking.quote-annotations` /// - `lint.flake8-type-checking.runtime-evaluated-base-classes` /// - `lint.flake8-type-checking.runtime-evaluated-decorators` +/// - `lint.typing-modules` /// /// ## References /// - [PEP 536](https://peps.python.org/pep-0563/#runtime-annotation-resolution-and-type-checking) @@ -140,6 +141,7 @@ impl Violation for TypingOnlyFirstPartyImport { /// - `lint.flake8-type-checking.quote-annotations` /// - `lint.flake8-type-checking.runtime-evaluated-base-classes` /// - `lint.flake8-type-checking.runtime-evaluated-decorators` +/// - `lint.typing-modules` /// /// ## References /// - [PEP 536](https://peps.python.org/pep-0563/#runtime-annotation-resolution-and-type-checking) @@ -213,6 +215,7 @@ impl Violation for TypingOnlyThirdPartyImport { /// - `lint.flake8-type-checking.quote-annotations` /// - `lint.flake8-type-checking.runtime-evaluated-base-classes` /// - `lint.flake8-type-checking.runtime-evaluated-decorators` +/// - `lint.typing-modules` /// /// ## References /// - [PEP 536](https://peps.python.org/pep-0563/#runtime-annotation-resolution-and-type-checking)