8
8
class LogLevel (str , Enum ):
9
9
"""Enumeration of available log levels."""
10
10
11
- trace : str = "trace"
11
+ trace = "trace"
12
12
"""The TRACE log level."""
13
- debug : str = "debug"
13
+ debug = "debug"
14
14
"""The DEBUG log level."""
15
- info : str = "info"
15
+ info = "info"
16
16
"""The INFO log level."""
17
- success : str = "success"
17
+ success = "success"
18
18
"""The SUCCESS log level."""
19
- warning : str = "warning"
19
+ warning = "warning"
20
20
"""The WARNING log level."""
21
- error : str = "error"
21
+ error = "error"
22
22
"""The ERROR log level."""
23
- critical : str = "critical"
23
+ critical = "critical"
24
24
"""The CRITICAL log level."""
25
25
26
26
@@ -62,72 +62,72 @@ class DocstringSectionKind(str, Enum):
62
62
class ParameterKind (str , Enum ):
63
63
"""Enumeration of the different parameter kinds."""
64
64
65
- positional_only : str = "positional-only"
65
+ positional_only = "positional-only"
66
66
"""Positional-only parameter."""
67
- positional_or_keyword : str = "positional or keyword"
67
+ positional_or_keyword = "positional or keyword"
68
68
"""Positional or keyword parameter."""
69
- var_positional : str = "variadic positional"
69
+ var_positional = "variadic positional"
70
70
"""Variadic positional parameter."""
71
- keyword_only : str = "keyword-only"
71
+ keyword_only = "keyword-only"
72
72
"""Keyword-only parameter."""
73
- var_keyword : str = "variadic keyword"
73
+ var_keyword = "variadic keyword"
74
74
"""Variadic keyword parameter."""
75
75
76
76
77
77
class Kind (str , Enum ):
78
78
"""Enumeration of the different object kinds."""
79
79
80
- MODULE : str = "module"
80
+ MODULE = "module"
81
81
"""Modules."""
82
- CLASS : str = "class"
82
+ CLASS = "class"
83
83
"""Classes."""
84
- FUNCTION : str = "function"
84
+ FUNCTION = "function"
85
85
"""Functions and methods."""
86
- ATTRIBUTE : str = "attribute"
86
+ ATTRIBUTE = "attribute"
87
87
"""Attributes and properties."""
88
- ALIAS : str = "alias"
88
+ ALIAS = "alias"
89
89
"""Aliases (imported objects)."""
90
90
91
91
92
92
class ExplanationStyle (str , Enum ):
93
93
"""Enumeration of the possible styles for explanations."""
94
94
95
- ONE_LINE : str = "oneline"
95
+ ONE_LINE = "oneline"
96
96
"""Explanations on one-line."""
97
- VERBOSE : str = "verbose"
97
+ VERBOSE = "verbose"
98
98
"""Explanations on multiple lines."""
99
- MARKDOWN : str = "markdown"
99
+ MARKDOWN = "markdown"
100
100
"""Explanations in Markdown, adapted to changelogs."""
101
- GITHUB : str = "github"
101
+ GITHUB = "github"
102
102
"""Explanation as GitHub workflow commands warnings, adapted to CI."""
103
103
104
104
105
105
class BreakageKind (str , Enum ):
106
106
"""Enumeration of the possible API breakages."""
107
107
108
- PARAMETER_MOVED : str = "Positional parameter was moved"
108
+ PARAMETER_MOVED = "Positional parameter was moved"
109
109
"""Positional parameter was moved"""
110
- PARAMETER_REMOVED : str = "Parameter was removed"
110
+ PARAMETER_REMOVED = "Parameter was removed"
111
111
"""Parameter was removed"""
112
- PARAMETER_CHANGED_KIND : str = "Parameter kind was changed"
112
+ PARAMETER_CHANGED_KIND = "Parameter kind was changed"
113
113
"""Parameter kind was changed"""
114
- PARAMETER_CHANGED_DEFAULT : str = "Parameter default was changed"
114
+ PARAMETER_CHANGED_DEFAULT = "Parameter default was changed"
115
115
"""Parameter default was changed"""
116
- PARAMETER_CHANGED_REQUIRED : str = "Parameter is now required"
116
+ PARAMETER_CHANGED_REQUIRED = "Parameter is now required"
117
117
"""Parameter is now required"""
118
- PARAMETER_ADDED_REQUIRED : str = "Parameter was added as required"
118
+ PARAMETER_ADDED_REQUIRED = "Parameter was added as required"
119
119
"""Parameter was added as required"""
120
- RETURN_CHANGED_TYPE : str = "Return types are incompatible"
120
+ RETURN_CHANGED_TYPE = "Return types are incompatible"
121
121
"""Return types are incompatible"""
122
- OBJECT_REMOVED : str = "Public object was removed"
122
+ OBJECT_REMOVED = "Public object was removed"
123
123
"""Public object was removed"""
124
- OBJECT_CHANGED_KIND : str = "Public object points to a different kind of object"
124
+ OBJECT_CHANGED_KIND = "Public object points to a different kind of object"
125
125
"""Public object points to a different kind of object"""
126
- ATTRIBUTE_CHANGED_TYPE : str = "Attribute types are incompatible"
126
+ ATTRIBUTE_CHANGED_TYPE = "Attribute types are incompatible"
127
127
"""Attribute types are incompatible"""
128
- ATTRIBUTE_CHANGED_VALUE : str = "Attribute value was changed"
128
+ ATTRIBUTE_CHANGED_VALUE = "Attribute value was changed"
129
129
"""Attribute value was changed"""
130
- CLASS_REMOVED_BASE : str = "Base class was removed"
130
+ CLASS_REMOVED_BASE = "Base class was removed"
131
131
"""Base class was removed"""
132
132
133
133
@@ -151,31 +151,31 @@ class Parser(str, Enum):
151
151
class ObjectKind (str , Enum ):
152
152
"""Enumeration of the different runtime object kinds."""
153
153
154
- MODULE : str = "module"
154
+ MODULE = "module"
155
155
"""Modules."""
156
- CLASS : str = "class"
156
+ CLASS = "class"
157
157
"""Classes."""
158
- STATICMETHOD : str = "staticmethod"
158
+ STATICMETHOD = "staticmethod"
159
159
"""Static methods."""
160
- CLASSMETHOD : str = "classmethod"
160
+ CLASSMETHOD = "classmethod"
161
161
"""Class methods."""
162
- METHOD_DESCRIPTOR : str = "method_descriptor"
162
+ METHOD_DESCRIPTOR = "method_descriptor"
163
163
"""Method descriptors."""
164
- METHOD : str = "method"
164
+ METHOD = "method"
165
165
"""Methods."""
166
- BUILTIN_METHOD : str = "builtin_method"
166
+ BUILTIN_METHOD = "builtin_method"
167
167
"""Built-in methods."""
168
- COROUTINE : str = "coroutine"
168
+ COROUTINE = "coroutine"
169
169
"""Coroutines"""
170
- FUNCTION : str = "function"
170
+ FUNCTION = "function"
171
171
"""Functions."""
172
- BUILTIN_FUNCTION : str = "builtin_function"
172
+ BUILTIN_FUNCTION = "builtin_function"
173
173
"""Built-in functions."""
174
- CACHED_PROPERTY : str = "cached_property"
174
+ CACHED_PROPERTY = "cached_property"
175
175
"""Cached properties."""
176
- PROPERTY : str = "property"
176
+ PROPERTY = "property"
177
177
"""Properties."""
178
- ATTRIBUTE : str = "attribute"
178
+ ATTRIBUTE = "attribute"
179
179
"""Attributes."""
180
180
181
181
def __str__ (self ) -> str :
0 commit comments