Skip to content

Commit

Permalink
types.FunctionType -> typing.Callable
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirshup committed Jun 16, 2021
1 parent ecd68cb commit 7526663
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scanpy/external/pp/_bbknn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from typing import Union, Optional
import types
from typing import Union, Optional, Callable

from anndata import AnnData
import sklearn
Expand All @@ -18,9 +17,7 @@ def bbknn(
use_rep: str = 'X_pca',
approx: bool = True,
use_annoy: bool = True,
metric: Union[
str, 'types.FunctionType', 'sklearn.neighbors.DistanceMetric'
] = 'euclidean',
metric: Union[str, Callable, 'sklearn.neighbors.DistanceMetric'] = 'euclidean',
copy: bool = False,
*,
neighbors_within_batch: int = 3,
Expand Down

0 comments on commit 7526663

Please sign in to comment.