Closed robvdl closed 8 months ago
It keeps traversing the object hierarchy until it finds one that isn't None.
If it gets exhausted (that shouldn't happen) it just returns Resource, but the last loop iteration should already do that as it hits "top".
Also add some docstrings to resource.py
Fixes #38
It keeps traversing the object hierarchy until it finds one that isn't None.
If it gets exhausted (that shouldn't happen) it just returns Resource, but the last loop iteration should already do that as it hits "top".
Also add some docstrings to resource.py
Fixes #38