@@ -68,7 +68,7 @@ def determine_type(cls, stac_json: Dict[str, Any]) -> Optional["CatalogType"]:
6868 Only applies to Catalogs or Collections
6969
7070 Args:
71- stac_json (dict) : The STAC JSON dict to determine the catalog type
71+ stac_json : The STAC JSON dict to determine the catalog type
7272
7373 Returns:
7474 Optional[CatalogType]: The catalog type of the catalog or collection.
@@ -102,28 +102,28 @@ class Catalog(STACObject):
102102 as well as :class:`~pystac.Item` s.
103103
104104 Args:
105- id (str) : Identifier for the catalog. Must be unique within the STAC.
106- description (str) : Detailed multi-line description to fully explain the catalog.
105+ id : Identifier for the catalog. Must be unique within the STAC.
106+ description : Detailed multi-line description to fully explain the catalog.
107107 `CommonMark 0.28 syntax <http://commonmark.org/>`_ MAY be used for rich text
108108 representation.
109- title (str or None) : Optional short descriptive one-line title for the catalog.
110- stac_extensions (List[str]) : Optional list of extensions the Catalog implements.
111- href (str or None) : Optional HREF for this catalog, which be set as the
109+ title : Optional short descriptive one-line title for the catalog.
110+ stac_extensions : Optional list of extensions the Catalog implements.
111+ href : Optional HREF for this catalog, which be set as the
112112 catalog's self link's HREF.
113- catalog_type (str or None) : Optional catalog type for this catalog. Must
113+ catalog_type : Optional catalog type for this catalog. Must
114114 be one of the values in :class`~pystac.CatalogType`.
115115
116116 Attributes:
117- id (str) : Identifier for the catalog.
118- description (str) : Detailed multi-line description to fully explain the catalog.
119- title (str or None) : Optional short descriptive one-line title for the catalog.
120- stac_extensions (List[str] or None) : Optional list of extensions the Catalog
117+ id : Identifier for the catalog.
118+ description : Detailed multi-line description to fully explain the catalog.
119+ title : Optional short descriptive one-line title for the catalog.
120+ stac_extensions : Optional list of extensions the Catalog
121121 implements.
122- extra_fields (dict or None) : Extra fields that are part of the top-level JSON
122+ extra_fields : Extra fields that are part of the top-level JSON
123123 properties of the Catalog.
124- links (List[Link]) : A list of :class:`~pystac.Link` objects representing
124+ links : A list of :class:`~pystac.Link` objects representing
125125 all links associated with this Catalog.
126- catalog_type (str) : The catalog type. Defaults to ABSOLUTE_PUBLISHED
126+ catalog_type : The catalog type. Defaults to ABSOLUTE_PUBLISHED
127127 """
128128
129129 STAC_OBJECT_TYPE = pystac .STACObjectType .CATALOG
@@ -197,9 +197,9 @@ def add_child(
197197 this Catalog's root.
198198
199199 Args:
200- child (Catalog or Collection) : The child to add.
201- title (str) : Optional title to give to the :class:`~pystac.Link`
202- strategy (HrefLayoutStrategy) : The layout strategy to use for setting the
200+ child : The child to add.
201+ title : Optional title to give to the :class:`~pystac.Link`
202+ strategy : The layout strategy to use for setting the
203203 self href of the child.
204204 """
205205
@@ -229,7 +229,7 @@ def add_children(
229229 this Catalog's root.
230230
231231 Args:
232- children (Iterable[Catalog or Collection]) : The children to add.
232+ children : The children to add.
233233 """
234234 for child in children :
235235 self .add_child (child )
@@ -245,8 +245,8 @@ def add_item(
245245 this Catalog's root.
246246
247247 Args:
248- item (Item) : The item to add.
249- title (str) : Optional title to give to the :class:`~pystac.Link`
248+ item : The item to add.
249+ title : Optional title to give to the :class:`~pystac.Link`
250250 """
251251
252252 # Prevent typo confusion
@@ -273,7 +273,7 @@ def add_items(self, items: Iterable["Item_Type"]) -> None:
273273 this Catalog's root.
274274
275275 Args:
276- items (Iterable[Item]) : The items to add.
276+ items : The items to add.
277277 """
278278 for item in items :
279279 self .add_item (item )
@@ -284,8 +284,8 @@ def get_child(
284284 """Gets the child of this catalog with the given ID, if it exists.
285285
286286 Args:
287- id (str) : The ID of the child to find.
288- recursive (bool) : If True, search this catalog and all children for the
287+ id : The ID of the child to find.
288+ recursive : If True, search this catalog and all children for the
289289 item; otherwise, only search the children of this catalog. Defaults
290290 to False.
291291
@@ -336,7 +336,7 @@ def remove_child(self, child_id: str) -> None:
336336 """Removes an child from this catalog.
337337
338338 Args:
339- child_id (str) : The ID of the child to remove.
339+ child_id : The ID of the child to remove.
340340 """
341341 new_links : List [pystac .Link ] = []
342342 root = self .get_root ()
@@ -357,8 +357,8 @@ def get_item(self, id: str, recursive: bool = False) -> Optional["Item_Type"]:
357357 """Returns an item with a given ID.
358358
359359 Args:
360- id (str) : The ID of the item to find.
361- recursive (bool) : If True, search this catalog and all children for the
360+ id : The ID of the item to find.
361+ recursive : If True, search this catalog and all children for the
362362 item; otherwise, only search the items of this catalog. Defaults
363363 to False.
364364
@@ -400,7 +400,7 @@ def remove_item(self, item_id: str) -> None:
400400 """Removes an item from this catalog.
401401
402402 Args:
403- item_id (str) : The ID of the item to remove.
403+ item_id : The ID of the item to remove.
404404 """
405405 new_links : List [pystac .Link ] = []
406406 root = self .get_root ()
@@ -515,13 +515,13 @@ def normalize_and_save(
515515 in sequence.
516516
517517 Args:
518- root_href (str) : The absolute HREF that all links will be normalized
518+ root_href : The absolute HREF that all links will be normalized
519519 against.
520- catalog_type (str) : The catalog type that dictates the structure of
520+ catalog_type : The catalog type that dictates the structure of
521521 the catalog to save. Use a member of :class:`~pystac.CatalogType`.
522522 Defaults to the root catalog.catalog_type or the current catalog
523523 catalog_type if there is no root catalog.
524- strategy (HrefLayoutStrategy) : The layout strategy to use in setting the
524+ strategy : The layout strategy to use in setting the
525525 HREFS for this catalog. Defaults to
526526 :class:`~pystac.layout.BestPracticesLayoutStrategy`
527527 """
@@ -538,8 +538,8 @@ def normalize_hrefs(
538538 This method mutates the entire catalog tree.
539539
540540 Args:
541- root_href (str) : The absolute HREF that all links will be normalized against.
542- strategy (HrefLayoutStrategy) : The layout strategy to use in setting the HREFS
541+ root_href : The absolute HREF that all links will be normalized against.
542+ strategy : The layout strategy to use in setting the HREFS
543543 for this catalog. Defaults to :class:`~pystac.layout.BestPracticesLayoutStrategy`
544544
545545 See:
@@ -611,12 +611,12 @@ def generate_subcatalogs(
611611 and organize the items based on template values.
612612
613613 Args:
614- template (str) : A template string that
614+ template : A template string that
615615 can be consumed by a :class:`~pystac.layout.LayoutTemplate`
616- defaults (dict) : Default values for the template variables
616+ defaults : Default values for the template variables
617617 that will be used if the property cannot be found on
618618 the item.
619- parent_ids (List[str]) : Optional list of the parent catalogs'
619+ parent_ids : Optional list of the parent catalogs'
620620 identifiers. If the bottom-most subcatalogs already match the
621621 template, no subcatalog is added.
622622
@@ -683,7 +683,7 @@ def save(self, catalog_type: Optional[CatalogType] = None) -> None:
683683 self link HREF.
684684
685685 Args:
686- catalog_type (str) : The catalog type that dictates the structure of
686+ catalog_type : The catalog type that dictates the structure of
687687 the catalog to save. Use a member of :class:`~pystac.CatalogType`.
688688 If not supplied, the catalog_type of this catalog will be used.
689689 If that attribute is not set, an exception will be raised.
@@ -783,7 +783,7 @@ def map_items(
783783 item_mapper function.
784784
785785 Args:
786- item_mapper (Callable) : A function that takes in an item, and returns
786+ item_mapper : A function that takes in an item, and returns
787787 either an item or list of items. The item that is passed into the
788788 item_mapper is a copy, so the method can mutate it safely.
789789
@@ -829,7 +829,7 @@ def map_assets(
829829 through the asset_mapper function.
830830
831831 Args:
832- asset_mapper (Callable) : A function that takes in an key and an Asset, and
832+ asset_mapper : A function that takes in an key and an Asset, and
833833 returns either an Asset, a (key, Asset), or a dictionary of Assets with
834834 unique keys. The Asset that is passed into the item_mapper is a copy,
835835 so the method can mutate it safely.
0 commit comments