Skip to content

Commit 311f587

Browse files
committed
Changed sequence to list
1 parent f98d601 commit 311f587

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

malariagen_data/anoph/gplt_params.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Parameters for genome plotting functions. N.B., genome plots are always
22
plotted with bokeh."""
33

4-
from typing import Literal, Mapping, Optional, Union, Final, Sequence
4+
from typing import Literal, Mapping, Optional, Union, Final
55

66
import bokeh.models
77
from typing_extensions import Annotated, TypeAlias
@@ -104,14 +104,9 @@
104104
"Passed through to bokeh line() function.",
105105
]
106106

107-
circle_kwargs_dict: TypeAlias = Annotated[
108-
Union[dict[int, circle_kwargs], dict[str, circle_kwargs]],
109-
"A dictionary of arguments passed through to bokeh scatter() function with marker = 'circle' with a value per contig.",
110-
]
111-
112107
contig_colors: TypeAlias = Annotated[
113-
Sequence[str],
108+
list[str],
114109
"A sequence of colors.",
115110
]
116111

117-
contig_colors_default: Final[contig_colors] = bokeh.palettes.d3["Category20b"][5]
112+
contig_colors_default: Final[contig_colors] = list(bokeh.palettes.d3["Category20b"][5])

0 commit comments

Comments
 (0)