The type was simply str but the default is null, thus resulting in a conversion error if the user fails to declare a value.