File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99from commitizen .question import CzQuestion
1010
11- # Type
12- Questions = Iterable [MutableMapping [str , Any ]] # TODO: deprecate this?
13-
1411
1512class CzSettings (TypedDict , total = False ):
1613 bump_pattern : str
@@ -161,6 +158,10 @@ def get_tag_regexes(
161158 }
162159
163160
161+ # Type
162+ Questions = Iterable [MutableMapping [str , Any ]] # TODO: remove this in v5
163+
164+
164165def __getattr__ (name : str ) -> Any :
165166 # PEP-562: deprecate module-level variable
166167
@@ -176,6 +177,7 @@ def __getattr__(name: str) -> Any:
176177 "change_type_order" : (CHANGE_TYPE_ORDER , "CHANGE_TYPE_ORDER" ),
177178 "encoding" : (ENCODING , "ENCODING" ),
178179 "name" : (DEFAULT_SETTINGS ["name" ], "DEFAULT_SETTINGS['name']" ),
180+ "Questions" : (Questions , "Iterable[MutableMapping[str, Any]]" ),
179181 }
180182 if name in deprecated_vars :
181183 value , replacement = deprecated_vars [name ]
You can’t perform that action at this time.
0 commit comments