File tree Expand file tree Collapse file tree 5 files changed +17
-10
lines changed
data/messages/i/invalid-name Expand file tree Collapse file tree 5 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 6262 "messages/messages_list" : "../user_guide/messages/messages_overview.html" ,
6363 "user_guide/message-control" : "messages/message_control.html" ,
6464 "technical_reference/c_extensions" : "../user_guide/messages/error/no-member.html" ,
65+ "user_guide/configuration/naming-styles" : "../user_guide/messages/convention/invalid-name.html" ,
6566 "development/testing" : "tests/index.html" ,
6667}
6768
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-
101Pylint recognizes a number of different name types internally. With a few
112exceptions, the type of the name is governed by the location the assignment to a
123name 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
77 :titlesonly:
88
99 configuration/all-options
10- configuration/naming-styles
You can’t perform that action at this time.
0 commit comments