Skip to content

Commit

Permalink
Fix some docstrings in catalog.py
Browse files Browse the repository at this point in the history
  • Loading branch information
duckontheweb committed Aug 14, 2021
1 parent b2e541a commit 6e5ee27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pystac/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CatalogType(str, Enum):
See:
:stac-spec:`The best practices documentation on self-contained catalogs
<best-practices.md#self-contained-catalogs>`
<best-practices.md#self-contained-catalogs>`
"""

ABSOLUTE_PUBLISHED = "ABSOLUTE_PUBLISHED"
Expand All @@ -55,7 +55,7 @@ class CatalogType(str, Enum):
See:
:stac-spec:`The best practices documentation on published catalogs
<best-practices.md#published-catalogs>`
<best-practices.md#published-catalogs>`
"""

RELATIVE_PUBLISHED = "RELATIVE_PUBLISHED"
Expand All @@ -65,7 +65,7 @@ class CatalogType(str, Enum):
See:
:stac-spec:`The best practices documentation on published catalogs
<best-practices.md#published-catalogs>`
<best-practices.md#published-catalogs>`
"""

@classmethod
Expand Down Expand Up @@ -1013,7 +1013,7 @@ def from_file(cls, href: str, stac_io: Optional[pystac.StacIO] = None) -> "Catal
result = super().from_file(href, stac_io)
if not isinstance(result, Catalog):
raise pystac.STACTypeError(f"{result} is not a {Catalog}.")
result._stac_io = stac_io
result.stac_io = stac_io

return result

Expand Down

0 comments on commit 6e5ee27

Please sign in to comment.