Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 14, 2024
1 parent db3c3f3 commit d051111
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 16 deletions.
3 changes: 1 addition & 2 deletions src/rapids_singlecell/get/_aggregated.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from __future__ import annotations

from collections.abc import Collection, Iterable
from typing import (
TYPE_CHECKING,
Collection,
Iterable,
Literal,
Union,
get_args,
Expand Down
3 changes: 2 additions & 1 deletion src/rapids_singlecell/preprocessing/_neighbors.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from __future__ import annotations

import math
from collections.abc import Mapping
from types import MappingProxyType
from typing import TYPE_CHECKING, Any, Literal, Mapping, Union
from typing import TYPE_CHECKING, Any, Literal, Union

import cupy as cp
import numpy as np
Expand Down
4 changes: 2 additions & 2 deletions src/rapids_singlecell/squidpy_gpu/_autocorr.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import annotations

from collections.abc import Sequence
from typing import (
TYPE_CHECKING,
Literal, # < 3.8
Sequence,
Literal,
)

import cupy as cp
Expand Down
4 changes: 1 addition & 3 deletions src/rapids_singlecell/squidpy_gpu/_ligrec.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from __future__ import annotations

import math
from collections.abc import Iterable, Mapping, Sequence
from itertools import product
from typing import (
Iterable,
Literal,
Mapping,
Sequence,
)

import cupy as cp
Expand Down
3 changes: 2 additions & 1 deletion src/rapids_singlecell/tools/_clustering.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from __future__ import annotations

import warnings
from typing import TYPE_CHECKING, Sequence
from collections.abc import Sequence
from typing import TYPE_CHECKING

import cudf
import numpy as np
Expand Down
3 changes: 2 additions & 1 deletion src/rapids_singlecell/tools/_embedding_density.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from __future__ import annotations

import math
from typing import TYPE_CHECKING, Sequence
from collections.abc import Sequence
from typing import TYPE_CHECKING

import cupy as cp
import numpy as np
Expand Down
3 changes: 2 additions & 1 deletion src/rapids_singlecell/tools/_rank_gene_groups.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

from typing import TYPE_CHECKING, Iterable, Literal
from collections.abc import Iterable
from typing import TYPE_CHECKING, Literal

import cupy as cp
import numpy as np
Expand Down
3 changes: 1 addition & 2 deletions src/rapids_singlecell/tools/_score_genes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
from ._utils import _nan_mean

if TYPE_CHECKING:
from collections.abc import Generator
from typing import Sequence
from collections.abc import Generator, Sequence

from anndata import AnnData

Expand Down
7 changes: 4 additions & 3 deletions tests/test_ligrec.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from __future__ import annotations

import pickle
from collections.abc import Sequence
from itertools import product
from pathlib import Path
from typing import TYPE_CHECKING, Sequence, Tuple
from typing import TYPE_CHECKING

import numpy as np
import pandas as pd
Expand All @@ -16,8 +17,8 @@
HERE = Path(__file__).parent

_CK = "leiden"
Interactions_t = Tuple[Sequence[str], Sequence[str]]
Complexes_t = Sequence[Tuple[str, str]]
Interactions_t = tuple[Sequence[str], Sequence[str]]
Complexes_t = Sequence[tuple[str, str]]


@pytest.fixture()
Expand Down

0 comments on commit d051111

Please sign in to comment.