Type Error: 'expected class "execute" to be a function not a method' When Removing Poll i'm following a 2.79 blender python tutorial for beginners, under 2.83.2.  i'm having trouble removing the poll from the classmethod.  (is there a reason i shouldn't do that?)  this works:
class MonkeyOperator(bpy.types.Operator):
    &quot;&quot;&quot;Tooltip&quot;&quot;&quot;
    bl_idname = &quot;object.make_monkey&quot;
    bl_label = &quot;Monkey Operator&quot;

    @classmethod
    def poll(cls, context):
        return context.object is None

    def execute(self, context):
        main(context)
        return {'FINISHED'}


def register():
    bpy.utils.register_class(MonkeyOperator)


def unregister():
    bpy.utils.unregister_class(MonkeyOperator)


if __name__ == &quot;__main__&quot;:
    register()

...
but if i comment out or delete the poll lines, it throws this error:

line 61, in register
TypeError: expected Operator, MonkeyOperator class &quot;execute&quot; attribute to be a function, not a method

the execute is exactly the same as before. so... ???
You would have to remove or comment out the method including the @classmethod decorator:
import bpy

class MonkeyOperator(bpy.types.Operator):
    &quot;&quot;&quot;Tooltip&quot;&quot;&quot;
    bl_idname = &quot;object.make_monkey&quot;
    bl_label = &quot;Monkey Operator&quot;

    def execute(self, context):
        # do stuff
        return {'FINISHED'}

def register():
    bpy.utils.register_class(MonkeyOperator)

def unregister():
    bpy.utils.unregister_class(MonkeyOperator)


if __name__ == &quot;__main__&quot;:
    register()

For multiline comments you can use triple-quoted strings:
'''
@classmethod
def poll(cls, context):
    return context.object is None
'''