Overriding default mesh/object creation properties.

Following this Stack Exchange page:

I was able to effectively override the default property for the circle, cylinder and UV sphere.

However, when I followed the exact principle, imported the MESH_OT for torus primitive and try to override its defaults, blender fails at importing its MESH_OT module.

What could be happening? I checked inside bpy.types, and I have made no typo on the line of importing.


from bpy.props import IntProperty
from bpy.types import (
    MESH_OT_primitive_torus_add,
    MESH_OT_primitive_cone_add,
    MESH_OT_primitive_circle_add,
    MESH_OT_primitive_cylinder_add,
    MESH_OT_primitive_uv_sphere_add,
)

If anyone has experience with this and has successfully done so, please lend a hand.