Skip to content

Commit d36b9c7

Browse files
Kirill888pjonsson
authored andcommitted
maint: don't call constructor in setstate
1 parent 4888018 commit d36b9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odc/geo/crs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __getstate__(self):
123123
return {"crs_str": self._str}
124124

125125
def __setstate__(self, state) -> None:
126-
self.__init__(state["crs_str"]) # type: ignore[misc]
126+
self._crs, self._str, self._epsg = _make_crs(state["crs_str"])
127127

128128
def to_wkt(self, pretty: bool = False, version: Optional[WktVersion] = None) -> str:
129129
"""

0 commit comments

Comments
 (0)