Skip to content

Commit 7c3608f

Browse files
committed
Clean up a couple minor things
1 parent 22771e4 commit 7c3608f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/astro_image_display_api/interface_definition.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def get_catalog_style(self, catalog_label: str | None = None) -> dict:
320320
The name of the catalog. If not given and there is
321321
only one catalog loaded, the style for that catalog is returned.
322322
If there are multiple catalogs and no label is provided, an error
323-
is raised. If the label is not does not correspond to a loaded
323+
is raised. If the label is does not correspond to a loaded
324324
catalog, an empty dictionary is returned.
325325
326326
Returns
@@ -339,7 +339,7 @@ def get_catalog_style(self, catalog_label: str | None = None) -> dict:
339339
raise NotImplementedError
340340

341341
@abstractmethod
342-
def remove_catalog(self, catalog_label: str | list[str] | None = None) -> None:
342+
def remove_catalog(self, catalog_label: str | None = None) -> None:
343343
"""
344344
Remove markers from the image.
345345
@@ -356,6 +356,10 @@ def remove_catalog(self, catalog_label: str | list[str] | None = None) -> None:
356356
If the `catalog_label` is not provided when there are multiple
357357
catalogs loaded, or if the `catalog_label` does not correspond to a
358358
loaded catalog.
359+
360+
TypeError
361+
If the `catalog_label` is not a string or `None`, or if it is not
362+
one of the allowed values.
359363
"""
360364
raise NotImplementedError
361365

0 commit comments

Comments
 (0)