Skip to content

Commit 8bd9306

Browse files
committed
mypy fix -- it's not inferring the type from parent data.Data correctly?
1 parent d0b9ef6 commit 8bd9306

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/galaxy/datatypes/images.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import numpy as np
2121
import png
2222
import tifffile
23+
from typing_extensions import Literal
2324

2425
try:
2526
import PIL
@@ -65,7 +66,7 @@ class Image(data.Data):
6566
edam_data = "data_2968"
6667
edam_format = "format_3547"
6768
file_ext = ""
68-
display_behavior = "inline" # Most image formats can be displayed inline in browsers
69+
display_behavior: Literal["inline", "download"] = "inline" # Most image formats can be displayed inline in browsers
6970

7071
MetadataElement(
7172
name="axes",

0 commit comments

Comments
 (0)