1
1
-- -
2
2
source : crates / ruff_linter / src / rules / pylint / mod .rs
3
3
-- -
4
- bad_dunder_method_name .py :5 :9 : PLW3201 Bad or misspelled dunder method name ` _init_`
4
+ bad_dunder_method_name .py :5 :9 : PLW3201 Dunder method ` _init_` has no special meaning in Python 3
5
5
|
6
6
4 | class Apples :
7
7
5 | def _init_ (self ): # [bad -dunder -name ]
8
8
| ^^^^^^ PLW3201
9
9
6 | pass
10
10
|
11
11
12
- bad_dunder_method_name .py :8:9: PLW3201 Bad or misspelled dunder method name `__hello__ `
12
+ bad_dunder_method_name .py :8:9: PLW3201 Dunder method `__hello__ ` has no special meaning in Python 3
13
13
|
14
14
6 | pass
15
15
7 |
@@ -18,7 +18,7 @@ bad_dunder_method_name.py:8:9: PLW3201 Bad or misspelled dunder method name `__h
18
18
9 | print ("hello ")
19
19
|
20
20
21
- bad_dunder_method_name .py :11:9: PLW3201 Bad or misspelled dunder method name `__init_ `
21
+ bad_dunder_method_name .py :11:9: PLW3201 Dunder method `__init_ ` has no special meaning in Python 3
22
22
|
23
23
9 | print ("hello ")
24
24
10 |
@@ -28,7 +28,7 @@ bad_dunder_method_name.py:11:9: PLW3201 Bad or misspelled dunder method name `__
28
28
13 | pass
29
29
|
30
30
31
- bad_dunder_method_name .py :15:9: PLW3201 Bad or misspelled dunder method name `_init_ `
31
+ bad_dunder_method_name .py :15:9: PLW3201 Dunder method `_init_ ` has no special meaning in Python 3
32
32
|
33
33
13 | pass
34
34
14 |
@@ -38,7 +38,7 @@ bad_dunder_method_name.py:15:9: PLW3201 Bad or misspelled dunder method name `_i
38
38
17 | pass
39
39
|
40
40
41
- bad_dunder_method_name .py :19:9: PLW3201 Bad or misspelled dunder method name `___neg__ `
41
+ bad_dunder_method_name .py :19:9: PLW3201 Dunder method `___neg__ ` has no special meaning in Python 3
42
42
|
43
43
17 | pass
44
44
18 |
@@ -48,7 +48,7 @@ bad_dunder_method_name.py:19:9: PLW3201 Bad or misspelled dunder method name `__
48
48
21 | pass
49
49
|
50
50
51
- bad_dunder_method_name .py :23:9: PLW3201 Bad or misspelled dunder method name `__inv__ `
51
+ bad_dunder_method_name .py :23:9: PLW3201 Dunder method `__inv__ ` has no special meaning in Python 3
52
52
|
53
53
21 | pass
54
54
22 |
@@ -58,4 +58,10 @@ bad_dunder_method_name.py:23:9: PLW3201 Bad or misspelled dunder method name `__
58
58
25 | pass
59
59
|
60
60
61
-
61
+ bad_dunder_method_name .py :98:9: PLW3201 Dunder method `__unicode__ ` has no special meaning in Python 3
62
+ |
63
+ 97 | # Removed with Python 3
64
+ 98 | def __unicode__ (self ):
65
+ | ^^^^^^^^^^^ PLW3201
66
+ 99 | pass
67
+ |
0 commit comments