Under components, the code is:
for component in layer.component:
print(component)
It should be layer.components
Under components, the code is:
for component in layer.component:
print(component)
It should be layer.components
Thanks. That’ll be corrected next time the documentation is generated.