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.
1 parent d1b333d commit 74a7dd0Copy full SHA for 74a7dd0
pystac/extensions/render.py
@@ -244,7 +244,8 @@ def get_schema_uri(cls) -> str:
244
def ext(cls, obj: T, add_if_missing: bool = False) -> RenderExtension[T]:
245
if isinstance(obj, pystac.Collection):
246
cls.ensure_has_extension(obj, add_if_missing)
247
- if isinstance(obj, pystac.Item):
+ return CollectionRenderExtension(obj)
248
+ elif isinstance(obj, pystac.Item):
249
250
return ItemRenderExtension(obj)
251
else:
0 commit comments