We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dict
1 parent 5fa819f commit 06dfc14Copy full SHA for 06dfc14
pystac/link.py
@@ -244,9 +244,7 @@ def to_dict(self) -> Dict[str, Any]:
244
dict: A serialization of the Link that can be written out as JSON.
245
"""
246
247
- d: Dict[str, Any] = {"rel": self.rel}
248
-
249
- d["href"] = self.get_href()
+ d: Dict[str, Any] = {"rel": self.rel, "href": self.get_href()}
250
251
if self.media_type is not None:
252
d["type"] = self.media_type
0 commit comments