Resolve a warning when your provide a float in the duration parameter.
Also, according to the warning message, setting a default value of 0 was like giving the type hint "int" for this parameter and results in unwanted truncation when giving a float.
Resolve a warning when your provide a float in the duration parameter. Also, according to the warning message, setting a default value of 0 was like giving the type hint "int" for this parameter and results in unwanted truncation when giving a float.