Skip to content

Commit f428bd5

Browse files
authored
Docs: mention lint.typing-modules in TCH001, TCH002, TCH003 (#11144)
## Summary Mention `lint.typing-modules` in `TCH001`, `TCH002`, `TCH003`; close #11142.
1 parent 4690890 commit f428bd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ruff_linter/src/rules/flake8_type_checking/rules/typing_only_runtime_import.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ use crate::rules::isort::{categorize, ImportSection, ImportType};
6767
/// - `lint.flake8-type-checking.quote-annotations`
6868
/// - `lint.flake8-type-checking.runtime-evaluated-base-classes`
6969
/// - `lint.flake8-type-checking.runtime-evaluated-decorators`
70+
/// - `lint.typing-modules`
7071
///
7172
/// ## References
7273
/// - [PEP 536](https://peps.python.org/pep-0563/#runtime-annotation-resolution-and-type-checking)
@@ -140,6 +141,7 @@ impl Violation for TypingOnlyFirstPartyImport {
140141
/// - `lint.flake8-type-checking.quote-annotations`
141142
/// - `lint.flake8-type-checking.runtime-evaluated-base-classes`
142143
/// - `lint.flake8-type-checking.runtime-evaluated-decorators`
144+
/// - `lint.typing-modules`
143145
///
144146
/// ## References
145147
/// - [PEP 536](https://peps.python.org/pep-0563/#runtime-annotation-resolution-and-type-checking)
@@ -213,6 +215,7 @@ impl Violation for TypingOnlyThirdPartyImport {
213215
/// - `lint.flake8-type-checking.quote-annotations`
214216
/// - `lint.flake8-type-checking.runtime-evaluated-base-classes`
215217
/// - `lint.flake8-type-checking.runtime-evaluated-decorators`
218+
/// - `lint.typing-modules`
216219
///
217220
/// ## References
218221
/// - [PEP 536](https://peps.python.org/pep-0563/#runtime-annotation-resolution-and-type-checking)

0 commit comments

Comments
 (0)