diff --git a/pystac/stac_io.py b/pystac/stac_io.py index 70fd4ce70..68c4038de 100644 --- a/pystac/stac_io.py +++ b/pystac/stac_io.py @@ -101,7 +101,7 @@ def json_loads(self, txt: str, *args: Any, **kwargs: Any) -> Dict[str, Any]: result = json.loads(txt) return result - def json_dumps(self, json_dict: Dict[str, Any], *args: Any, **kwargs: Any) -> str: + def json_dumps(self, json_dict: Dict[str, Any]) -> str: """Method used internally by :class:`StacIO` instances to serialize a dictionary to a JSON string. @@ -229,8 +229,6 @@ def save_json( self, dest: Union[str, "Link_Type"], json_dict: Dict[str, Any], - *args: Any, - **kwargs: Any, ) -> None: """Write a dict to the given URI as JSON. @@ -240,12 +238,8 @@ def save_json( Args: dest : The destination file to write the text to. json_dict : The JSON dict to write. - *args : Additional positional arguments to be passed to - :meth:`StacIO.json_dumps`. - **kwargs : Additional keyword arguments to be passed to - :meth:`StacIO.json_dumps`. """ - txt = self.json_dumps(json_dict, *args, **kwargs) + txt = self.json_dumps(json_dict) self.write_text(dest, txt) @classmethod