How to register a function/property to the base of a collection property rather than it's items

I have a collection property defined as:

bpy.types.Scene.my_list = CollectionProperty(type=MyListClass)

and I know that I can add a function to every item in that list by defining it inside MyListClass, but instead, I want to define a function that can be accessed from the base of the property (sorry if that’s incorrect, I’m not sure what the correct terminology is).

AKA, I want to be able to access my function from:


rather than:


Is this possible? The same question also applies to custom properties.

Is it really not possible?

try to ask on
Maybe someone can help

Yeah, good idea, thanks.

Edit: I got an answer from devtalk, thanks a lot!