File tree 6 files changed +17
-10
lines changed
data/messages/i/invalid-name
6 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 62
62
"messages/messages_list" : "../user_guide/messages/messages_overview.html" ,
63
63
"user_guide/message-control" : "messages/message_control.html" ,
64
64
"technical_reference/c_extensions" : "../user_guide/messages/error/no-member.html" ,
65
+ "user_guide/configuration/naming-styles" : "../user_guide/messages/convention/invalid-name.html" ,
65
66
"development/testing" : "tests/index.html" ,
66
67
}
67
68
Original file line number Diff line number Diff line change
1
+ class cat : # [invalid-name]
2
+
3
+ def Meow (self , NUMBER_OF_MEOW ): # [invalid-name, invalid-name]
4
+ print ("Meow" * NUMBER_OF_MEOW )
5
+ return NUMBER_OF_MEOW
6
+
7
+
8
+ Cat = cat ().Meow (42 ) # [invalid-name]
Original file line number Diff line number Diff line change 1
- .. -*- coding: utf-8 -*-
2
-
3
- ===============
4
- Naming styles
5
- ===============
6
-
7
- Introduction
8
- ~~~~~~~~~~~~
9
-
10
1
Pylint recognizes a number of different name types internally. With a few
11
2
exceptions, the type of the name is governed by the location the assignment to a
12
3
name is found in, and not the type of object assigned.
Original file line number Diff line number Diff line change
1
+ class Cat :
2
+
3
+ def meow (self , number_of_meow ):
4
+ print ("Meow" * number_of_meow )
5
+ return number_of_meow
6
+
7
+
8
+ CAT = Cat ().meow (42 )
Original file line number Diff line number Diff line change @@ -7,4 +7,3 @@ Configuration
7
7
:titlesonly:
8
8
9
9
configuration/all-options
10
- configuration/naming-styles
You can’t perform that action at this time.
0 commit comments