Skip to content

Commit 34708f2

Browse files
committed
Delegate to child clone methods in Extent.clone
1 parent b388865 commit 34708f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pystac/collection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from copy import copy, deepcopy
1+
from copy import deepcopy
22
from datetime import datetime as Datetime
33
from pystac.errors import STACTypeError
44
from typing import (
@@ -318,8 +318,8 @@ def clone(self) -> "Extent":
318318
Extent: The clone of this extent.
319319
"""
320320
return Extent(
321-
spatial=copy(self.spatial),
322-
temporal=copy(self.temporal),
321+
spatial=self.spatial.clone(),
322+
temporal=self.temporal.clone(),
323323
extra_fields=deepcopy(self.extra_fields),
324324
)
325325

0 commit comments

Comments
 (0)