Skip to content

Commit 61dd1c9

Browse files
committed
Extension/table - Removed deepcopy usage
1 parent 58f9a6e commit 61dd1c9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pystac/extensions/table.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
https://github.com/stac-extensions/table
44
"""
5-
from copy import deepcopy
65
from typing import Any, Dict, Generic, List, Optional, TypeVar, Union, cast
76

87
import pystac
@@ -81,7 +80,7 @@ def col_type(self, v: Optional[str]) -> None:
8180

8281
def to_dict(self) -> Dict[str, Any]:
8382
"""Returns a JSON-like dictionary representing this ``Column``."""
84-
return deepcopy(self.properties)
83+
return self.properties
8584

8685

8786
class Table:
@@ -118,7 +117,7 @@ def description(self, v: Optional[str]) -> None:
118117

119118
def to_dict(self) -> Dict[str, Any]:
120119
"""Returns a JSON-like dictionary representing this ``Table``."""
121-
return deepcopy(self.properties)
120+
return self.properties
122121

123122

124123
class TableExtension(

0 commit comments

Comments
 (0)