The default argument have to be scale=(1.0, 1.0, 1.0)

Hi,
I would like to draw your attention to the fact that the scale value of the default argument is not “scale=(0.0, 0.0, 0.0)” but (1.0, 1.0, 1.0) in 10 pieces of primitive functions at documentation link
Mesh Operators
https://docs.blender.org/api/current/bpy.ops.mesh.html
Thx.