We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PLW3201
1 parent a8d7bba commit 82e0a97Copy full SHA for 82e0a97
crates/ruff/src/rules/pylint/rules/bad_dunder_method_name.rs
@@ -7,11 +7,14 @@ use crate::checkers::ast::Checker;
7
8
/// ## What it does
9
/// Checks for any misspelled dunder name method and for any method
10
-/// defined with `__...__` that's not one of the pre-defined methods.
+/// defined with `_..._` that's not one of the pre-defined methods
11
///
12
/// The pre-defined methods encompass all of Python's standard dunder
13
/// methods.
14
15
+/// Note this includes all methods starting and ending with at least
16
+/// one underscore to detect mistakes.
17
+///
18
/// ## Why is this bad?
19
/// Misspelled dunder name methods may cause your code to not function
20
/// as expected.
0 commit comments