How to register a collection property to a custom property group I would like to register a collection property for a list to a property group that I have already created.
Unfortunately, this doesn't seem to work:
bpy.types.Scene.my_group = PointerProperty(type=MyGroupClass)
bpy.types.Scene.my_group.my_list = CollectionProperty(type=MyListClass)

This could help tidy up my code by simply accessing the list through the property group, rather than just from the scene like normal. Is this possible?
Thanks to @batFINGER for the answer.
I just had to use this code instead, using the actual class name instead:
bpy.types.Scene.my_group = PointerProperty(type=MyGroupClass)
MyGroupClass.my_list = CollectionProperty(type=MyListClass)