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.
2 parents 8a33b07 + 06dfc14 commit e46ef7bCopy full SHA for e46ef7b
pystac/link.py
@@ -250,9 +250,7 @@ def to_dict(self) -> Dict[str, Any]:
250
dict: A serialization of the Link that can be written out as JSON.
251
"""
252
253
- d: Dict[str, Any] = {"rel": self.rel}
254
-
255
- d["href"] = self.get_href()
+ d: Dict[str, Any] = {"rel": self.rel, "href": self.get_href()}
256
257
if self.media_type is not None:
258
d["type"] = self.media_type
0 commit comments