Skip to content

Commit 12713d5

Browse files
committed
Add type clarification
1 parent d2d8c47 commit 12713d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/astro_image_display_api/interface_definition.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from typing import Protocol, runtime_checkable, Any
22
from abc import abstractmethod
3+
import numbers
34
import os
45

56
from astropy.coordinates import SkyCoord
@@ -55,7 +56,7 @@ def load_image(self, data: Any, image_label: str | None = None) -> None:
5556

5657
# Setting and getting image properties
5758
@abstractmethod
58-
def set_cuts(self, cuts: tuple | BaseInterval, image_label: str | None = None) -> None:
59+
def set_cuts(self, cuts: tuple[numbers.Real, numbers.Real] | BaseInterval, image_label: str | None = None) -> None:
5960
"""
6061
Set the cuts for the image.
6162

0 commit comments

Comments
 (0)