Skip to content

Commit

Permalink
organize types
Browse files Browse the repository at this point in the history
  • Loading branch information
RemyLau committed Feb 4, 2024
1 parent 821ad7b commit f6760db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions dance/transforms/normalize.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import os
from multiprocessing import Manager, Pool
from numbers import Number
from typing import Iterable

import anndata as ad
import numpy as np
Expand All @@ -17,7 +15,7 @@
from dance.registry import register_preprocessor
from dance.transforms.base import BaseTransform
from dance.transforms.interface import AnnDataTransform
from dance.typing import Dict, List, Literal, NormMode, Optional, Union
from dance.typing import Dict, Iterable, List, Literal, NormMode, Number, Optional, Union
from dance.utils.matrix import normalize


Expand Down
4 changes: 4 additions & 0 deletions dance/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

import os
from logging import Logger
from numbers import Number
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
Iterable,
Iterator,
List,
Literal,
Expand Down Expand Up @@ -48,12 +50,14 @@
"FeatType",
"FileExistHandle",
"GeneSummaryMode",
"Iterable",
"Iterator",
"List",
"LogLevel",
"Logger",
"Mapping",
"NormMode",
"Number",
"Optional",
"ReturnedFeat",
"Sequence",
Expand Down

0 comments on commit f6760db

Please sign in to comment.