Skip to content

Commit 9eff9a2

Browse files
committed
version.py: Implement _object_links.
1 parent d5b40bd commit 9eff9a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pystac/extensions/version.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def from_item(cls, an_item):
8888

8989
@classmethod
9090
def _object_links(cls):
91-
return [] # TODO(schwehr): What should this return?
91+
return [LATEST_VERSION, PREDECESSOR_VERSION, SUCCESSOR_VERSION]
9292

9393

9494
class VersionCollectionExt(base.CollectionExtension):
@@ -150,7 +150,7 @@ def from_collection(cls, a_collection):
150150

151151
@classmethod
152152
def _object_links(cls):
153-
return [] # TODO(schwehr): What should this return?
153+
return [LATEST_VERSION, PREDECESSOR_VERSION, SUCCESSOR_VERSION]
154154

155155
def apply(self, version, deprecated=None, latest=None, predecessor=None, successor=None):
156156
self.version = version

0 commit comments

Comments
 (0)