Skip to content

Commit 6e5ee27

Browse files
committed
Fix some docstrings in catalog.py
1 parent b2e541a commit 6e5ee27

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pystac/catalog.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CatalogType(str, Enum):
4545
4646
See:
4747
:stac-spec:`The best practices documentation on self-contained catalogs
48-
<best-practices.md#self-contained-catalogs>`
48+
<best-practices.md#self-contained-catalogs>`
4949
"""
5050

5151
ABSOLUTE_PUBLISHED = "ABSOLUTE_PUBLISHED"
@@ -55,7 +55,7 @@ class CatalogType(str, Enum):
5555
5656
See:
5757
:stac-spec:`The best practices documentation on published catalogs
58-
<best-practices.md#published-catalogs>`
58+
<best-practices.md#published-catalogs>`
5959
"""
6060

6161
RELATIVE_PUBLISHED = "RELATIVE_PUBLISHED"
@@ -65,7 +65,7 @@ class CatalogType(str, Enum):
6565
6666
See:
6767
:stac-spec:`The best practices documentation on published catalogs
68-
<best-practices.md#published-catalogs>`
68+
<best-practices.md#published-catalogs>`
6969
"""
7070

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

10181018
return result
10191019

0 commit comments

Comments
 (0)