improve class docstring for SlotObject
remove unused variable
remove loop from _resolve_inside_targets logic