@@ -2263,7 +2263,7 @@ def set_constants(self, *constants, verbose=True):
22632263 self .flush ()
22642264 self ._on_constants_updated ()
22652265
2266- def create_constant (self , expression , * , verbose = True ):
2266+ def create_constant (self , expression , verbose = True , ** kwargs ):
22672267 """Append a constant to the stored list.
22682268
22692269 Parameters
@@ -2272,6 +2272,8 @@ def create_constant(self, expression, *, verbose=True):
22722272 Expression for the new constant.
22732273 verbose : boolean (optional)
22742274 Toggle talkback. Default is True
2275+ **kwargs
2276+ extra kwargs are passed to `Constant.__init__`
22752277
22762278 See Also
22772279 --------
@@ -2283,7 +2285,7 @@ def create_constant(self, expression, *, verbose=True):
22832285 if expression in self .constant_expressions :
22842286 wt_exceptions .ObjectExistsWarning .warn (expression )
22852287 return self .constants [self .constant_expressions .index (expression )]
2286- constant = Constant (self , expression )
2288+ constant = Constant (self , expression , ** kwargs )
22872289 if constant .units is None :
22882290 constant .convert (constant .variables [0 ].units )
22892291 self ._constants .append (constant )
0 commit comments