Skip to content

Commit 7b806c9

Browse files
committed
Fix API omissions
1 parent c655e77 commit 7b806c9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/astro_image_display_api/interface_definition.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def save(self, filename: str | os.PathLike, overwrite: bool = False) -> None:
119119

120120
# Marker-related methods
121121
@abstractmethod
122-
def start_marking(self, marker_name: str | None = None) -> None:
122+
def start_marking(self, marker_name: str | None = None, marker: Any = None) -> None:
123123
"""
124124
Start interactive marking of points on the image.
125125
@@ -128,6 +128,10 @@ def start_marking(self, marker_name: str | None = None) -> None:
128128
marker_name : str, optional
129129
The name of the marker set to use. If not given, a unique
130130
name will be generated.
131+
132+
marker : Any, optional
133+
The marker to use. If not given, a default marker will be
134+
used.
131135
"""
132136
raise NotImplementedError
133137

@@ -265,8 +269,7 @@ def offset_by(self, dx: float | Quantity, dy: float | Quantity) -> None:
265269
"""
266270
raise NotImplementedError
267271

268-
@abstractmethod
269-
def zoom(self) -> None:
272+
def zoom(self, val) -> None:
270273
"""
271274
Zoom in or out by the given factor.
272275

0 commit comments

Comments
 (0)