File tree Expand file tree Collapse file tree 2 files changed +283
-172
lines changed Expand file tree Collapse file tree 2 files changed +283
-172
lines changed Original file line number Diff line number Diff line change @@ -274,11 +274,16 @@ def _kwarg_not_implemented(value):
274
274
raise NotImplementedError ('kwarg NOT implemented.' )
275
275
276
276
def _validate_vkwargs_dict (vkwargs ):
277
- # Check that we didn't make a typo in any of the things
278
- # that should be the same for all vkwargs dict items:
277
+ """
278
+ Check that we didn't make a typo in any of the things
279
+ that should be the same for all vkwargs dict items:
280
+
281
+ {kwarg : {'Default': ... , 'Description': ... , 'Validator': ...} }
282
+ """
279
283
for key , value in vkwargs .items ():
280
- if len (value ) != 2 :
281
- raise ValueError ('Items != 2 in valid kwarg table, for kwarg "' + key + '"' )
284
+ # has been changed to 3 to support descriptions
285
+ if len (value ) != 3 :
286
+ raise ValueError ('Items != 3 in valid kwarg table, for kwarg "' + key + '"' )
282
287
if 'Default' not in value :
283
288
raise ValueError ('Missing "Default" value for kwarg "' + key + '"' )
284
289
if 'Validator' not in value :
You can’t perform that action at this time.
0 commit comments