diff --git a/docs/user_guide/python_api.md b/docs/user_guide/python_api.md index 913cc6bf3..0e73dca24 100644 --- a/docs/user_guide/python_api.md +++ b/docs/user_guide/python_api.md @@ -21,7 +21,7 @@ doc meaning that anyone working on the same QGIS project file, whether through the JupyterLab extension or the Python API, will see the edits you make. -Creating a `GISDocument` object without providing a path to an existing file would create a +Creating a `GISDocument` object without providing a path to an existing file creates a new empty document: ```python diff --git a/python/jupytergis_lab/jupytergis_lab/notebook/gis_document.py b/python/jupytergis_lab/jupytergis_lab/notebook/gis_document.py index a4e835417..64729480e 100644 --- a/python/jupytergis_lab/jupytergis_lab/notebook/gis_document.py +++ b/python/jupytergis_lab/jupytergis_lab/notebook/gis_document.py @@ -447,8 +447,8 @@ def add_hillshade_layer( """ Add a hillshade layer - :param str url: URL of the hillshade layer - :param str name: The name that will be used for the object in the document, defaults to "Hillshade Layer" + :param url: URL of the hillshade layer + :param name: The name that will be used for the object in the document, defaults to "Hillshade Layer" :param attribution: The attribution. """ if urlParameters is None: @@ -637,9 +637,9 @@ def create_color_expr( """ Create a color expression used to style the layer - :param Dict color_stops: Dictionary of stop values to [r, g, b, a] colors - :param float band: The band to be colored, defaults to 1.0 - :param str interpolation_type: The interpolation function. Can be linear, discrete, or exact, defaults to 'linear' + :param color_stops: Dictionary of stop values to [r, g, b, a] colors + :param band: The band to be colored, defaults to 1.0 + :param interpolation_type: The interpolation function. Can be linear, discrete, or exact, defaults to 'linear' """ if interpolation_type not in ["linear", "discrete", "exact"]: @@ -776,7 +776,7 @@ def clear_filters(self, layer_id: str): """ Clear filters on a layer - :param str layer_id: The ID of the layer to clear filters from + :param layer_id: The ID of the layer to clear filters from """ layer = self._layers.get(layer_id)