File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
from commitizen.question import CzQuestion
10
10
11
- # Type
12
- Questions = Iterable[MutableMapping[str, Any]] # TODO: deprecate this?
13
-
14
11
15
12
class CzSettings(TypedDict, total=False):
16
13
bump_pattern: str
@@ -161,6 +158,10 @@ def get_tag_regexes(
161
158
}
162
159
163
160
161
+ # Type
162
+ Questions = Iterable[MutableMapping[str, Any]] # TODO: remove this in v5
163
+
164
+
164
165
def __getattr__(name: str) -> Any:
165
166
# PEP-562: deprecate module-level variable
166
167
@@ -176,6 +177,7 @@ def __getattr__(name: str) -> Any:
176
177
"change_type_order": (CHANGE_TYPE_ORDER, "CHANGE_TYPE_ORDER"),
177
178
"encoding": (ENCODING, "ENCODING"),
178
179
"name": (DEFAULT_SETTINGS["name"], "DEFAULT_SETTINGS['name']"),
180
+ "Questions": (Questions, "Iterable[CzQuestion]"),
179
181
}
180
182
if name in deprecated_vars:
181
183
value, replacement = deprecated_vars[name]
You can’t perform that action at this time.
0 commit comments