@@ -299,7 +299,7 @@ def _add_signature_arguments(
299299 as_positional = as_positional ,
300300 )
301301
302- if hasattr (function_or_class , ' __scriptconfig__' ):
302+ if hasattr (function_or_class , " __scriptconfig__" ):
303303 # Integrate with scriptconfig style classes.
304304 # When a function/class has a __scriptconfig__ object that means it
305305 # should accept any of the options defined in the config as keyword
@@ -317,7 +317,8 @@ def _add_signature_arguments(
317317 as_positional = as_positional ,
318318 sub_configs = sub_configs ,
319319 skip = skip ,
320- linked_targets = linked_targets )
320+ linked_targets = linked_targets ,
321+ )
321322
322323 return added_args
323324
@@ -338,10 +339,11 @@ def _add_scriptconfig_arguments(
338339
339340 for key , value in config_cls .__default__ .items ():
340341 from scriptconfig import value as value_mod
342+
341343 if not isinstance (value , value_mod .Value ):
342344 # hack
343345 value = value_mod .Value (value )
344- type_ = value .parsekw [' type' ]
346+ type_ = value .parsekw [" type" ]
345347 if type_ is None or not isinstance (type_ , type ):
346348 annotation = inspect ._empty
347349 else :
@@ -351,7 +353,7 @@ def _add_scriptconfig_arguments(
351353 annotation = annotation ,
352354 kind = inspect .Parameter .KEYWORD_ONLY ,
353355 default = value .value ,
354- doc = value .parsekw [' help' ],
356+ doc = value .parsekw [" help" ],
355357 component = component ,
356358 parent = function_or_class ,
357359 short_aliases = value .short_alias ,
0 commit comments