File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 5
5
import math
6
6
from collections .abc import Callable , Iterable , Mapping
7
7
from functools import reduce
8
+ from typing import Any
8
9
9
10
import ipywidgets as ipw
10
11
import numpy as np
@@ -28,7 +29,7 @@ def __init__(
28
29
data : Mapping [str , sc .DataArray ],
29
30
* ,
30
31
rasterized : bool = True ,
31
- ** kwargs : object ,
32
+ ** kwargs : Any ,
32
33
) -> None :
33
34
"""Create a new viewer.
34
35
@@ -60,12 +61,12 @@ def __init__(
60
61
]
61
62
)
62
63
63
- def _select_bank (self , * _args : object , ** _kwargs : object ) -> None :
64
+ def _select_bank (self , * _args : Any , ** _kwargs : Any ) -> None :
64
65
self ._bank = self ._data [self ._bank_selector .value ]
65
66
self ._dim_selector .set_dims (self ._bank .dims )
66
67
self ._update_view ()
67
68
68
- def _update_view (self , * _args : object , ** _kwargs : object ) -> None :
69
+ def _update_view (self , * _args : Any , ** _kwargs : Any ) -> None :
69
70
self ._figure_box .children = [self ._make_figure ()]
70
71
71
72
def _make_figure (self ) -> FigureLike :
@@ -155,7 +156,7 @@ def _flat_voxel_figure(
155
156
data : sc .DataArray ,
156
157
horizontal_dim : str ,
157
158
vertical_dim : str ,
158
- ** kwargs : object ,
159
+ ** kwargs : Any ,
159
160
) -> FigureLike :
160
161
kept_dims = {horizontal_dim , vertical_dim }
161
162
You can’t perform that action at this time.
0 commit comments