Closed tcmitchell closed 3 years ago
When testing whether an initial value is specified, use if initial_value is not None instead of relying on boolean conversion using if initial_value. 0, 0.0 and '' all convert to False so these initial values were being ignored.
if initial_value is not None
if initial_value
0
0.0
''
Fixes #208
When testing whether an initial value is specified, use
if initial_value is not None
instead of relying on boolean conversion usingif initial_value
.0
,0.0
and''
all convert to False so these initial values were being ignored.Fixes #208