@@ -2,35 +2,35 @@ Pylint recognizes a number of different name types internally. With a few
22exceptions, the type of the name is governed by the location the assignment to a
33name is found in, and not the type of object assigned.
44
5- +--------------------+---------------------------------------------------------------------------------------------------+
6- | Name Type | Description |
7- +====================+===================================================================================================+
8- | ``module `` | Module and package names, same as the file names. |
9- +--------------------+---------------------------------------------------------------------------------------------------+
10- | ``const `` | Module-level constants, any variable defined at module level that is not bound to a class object. |
11- +--------------------+---------------------------------------------------------------------------------------------------+
12- | ``class `` | Names in ``class `` statements, as well as names bound to class objects at module level. |
13- +--------------------+---------------------------------------------------------------------------------------------------+
14- | ``function `` | Functions, toplevel or nested in functions or methods. |
15- +--------------------+---------------------------------------------------------------------------------------------------+
16- | ``method `` | Methods, functions defined in class bodies. Includes static and class methods. |
17- +--------------------+---------------------------------------------------------------------------------------------------+
18- | ``attr `` | Attributes created on class instances inside methods. |
19- +--------------------+---------------------------------------------------------------------------------------------------+
20- | ``argument `` | Arguments to any function type, including lambdas. |
21- +--------------------+---------------------------------------------------------------------------------------------------+
22- | ``variable `` | Local variables in function scopes. |
23- +--------------------+---------------------------------------------------------------------------------------------------+
24- | ``class-attribute``| Attributes defined in class bodies. |
25- +--------------------+---------------------------------------------------------------------------------------------------+
26- | ``class-const `` | Enum constants and class variables annotated with ``Final `` |
27- +--------------------+---------------------------------------------------------------------------------------------------+
28- | ``inlinevar `` | Loop variables in list comprehensions and generator expressions. |
29- +--------------------+---------------------------------------------------------------------------------------------------+
30- | ``typevar `` | Type variable declared with ``TypeVar ``. |
31- +--------------------+---------------------------------------------------------------------------------------------------+
32- | ``typealias `` | Type alias declared with ``TypeAlias `` or assignments of ``Union ``. |
33- +--------------------+---------------------------------------------------------------------------------------------------+
5+ +--------------------+------------------------------------------------------------------------------------------------------------- +
6+ | Name Type | Description |
7+ +====================+============================================================================================================= +
8+ | ``module `` | Module and package names, same as the file names. |
9+ +--------------------+------------------------------------------------------------------------------------------------------------- +
10+ | ``const `` | Module-level constants: any name defined at module level that is not bound to a class object nor reassigned. |
11+ +--------------------+------------------------------------------------------------------------------------------------------------- +
12+ | ``class `` | Names in ``class `` statements, as well as names bound to class objects at module level. |
13+ +--------------------+------------------------------------------------------------------------------------------------------------- +
14+ | ``function `` | Functions, toplevel or nested in functions or methods. |
15+ +--------------------+------------------------------------------------------------------------------------------------------------- +
16+ | ``method `` | Methods, functions defined in class bodies. Includes static and class methods. |
17+ +--------------------+------------------------------------------------------------------------------------------------------------- +
18+ | ``attr `` | Attributes created on class instances inside methods. |
19+ +--------------------+------------------------------------------------------------------------------------------------------------- +
20+ | ``argument `` | Arguments to any function type, including lambdas. |
21+ +--------------------+------------------------------------------------------------------------------------------------------------- +
22+ | ``variable `` | Local variables in function scopes or module-level names that are assigned multiple times. |
23+ +--------------------+------------------------------------------------------------------------------------------------------------- +
24+ | ``class-attribute``| Attributes defined in class bodies. |
25+ +--------------------+------------------------------------------------------------------------------------------------------------- +
26+ | ``class-const `` | Enum constants and class variables annotated with ``Final `` |
27+ +--------------------+------------------------------------------------------------------------------------------------------------- +
28+ | ``inlinevar `` | Loop variables in list comprehensions and generator expressions. |
29+ +--------------------+------------------------------------------------------------------------------------------------------------- +
30+ | ``typevar `` | Type variable declared with ``TypeVar ``. |
31+ +--------------------+------------------------------------------------------------------------------------------------------------- +
32+ | ``typealias `` | Type alias declared with ``TypeAlias `` or assignments of ``Union ``. |
33+ +--------------------+------------------------------------------------------------------------------------------------------------- +
3434
3535Default behavior
3636~~~~~~~~~~~~~~~~
@@ -50,7 +50,7 @@ Following predefined naming styles are available:
5050* ``UPPER_CASE ``
5151* ``any `` - fake style which does not enforce any limitations
5252
53- Following options are exposed:
53+ The following options are exposed:
5454
5555.. option :: --module-naming-style= <style >
5656
0 commit comments