diff --git a/pystac/stac_object.py b/pystac/stac_object.py index 157c6d0c2..18fddad27 100644 --- a/pystac/stac_object.py +++ b/pystac/stac_object.py @@ -381,14 +381,10 @@ def full_copy( target = cached_target else: target_parent = None - if ( - link.rel - in [ - pystac.RelType.CHILD, - pystac.RelType.ITEM, - ] - and isinstance(clone, pystac.Catalog) - ): + if link.rel in [ + pystac.RelType.CHILD, + pystac.RelType.ITEM, + ] and isinstance(clone, pystac.Catalog): target_parent = clone copied_target = target.full_copy(root=root, parent=target_parent) if root is not None: