@@ -30,7 +30,7 @@ def _testsign(
3030def _tensor_scores (
3131 adata : AnnData ,
3232 thr : float ,
33- ) -> tuple ( np .ndarray , np .ndarray , np .ndarray , np .ndarray , list ) :
33+ ) -> tuple [ np .ndarray , np .ndarray , np .ndarray , np .ndarray , list ] :
3434 # Get unique methods
3535 has_test = {m .name : m .test for m in _methods }
3636 has_test = has_test | {"consensus" : True }
@@ -79,7 +79,7 @@ def _mask_grps(
7979 obs : pd .DataFrame ,
8080 groupby : None | list ,
8181 verbose : float ,
82- ) -> tuple ( list , list , list ) :
82+ ) -> tuple [ list , list , list ] :
8383 if groupby is not None :
8484 # Init empty lsts
8585 msks = []
@@ -139,9 +139,9 @@ def _metric_scores(
139139 verbose : bool ,
140140 ** kwargs ,
141141) -> None :
142- assert isinstance (metrics , str | list ) or metrics is None , " metrics must be str or list"
143- if isinstance ( metrics , None ) :
144- metrics = [" auc" , " fscore" , " qrank" ]
142+ assert isinstance (metrics , str | list ) or metrics is None , ' metrics must be str or list'
143+ if metrics is None :
144+ metrics = [' auc' , ' fscore' , ' qrank' ]
145145 elif isinstance (metrics , str ):
146146 metrics = [metrics ]
147147 if runby == "expr" :
0 commit comments