Skip to content

Commit 73e49de

Browse files
committed
__future__ annotations pattern
1 parent 818558e commit 73e49de

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

sainsc/datasets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import TYPE_CHECKING
24

35
import pandas as pd
@@ -13,7 +15,7 @@
1315
version = "v" + __version__
1416

1517

16-
def _get_signature_pooch() -> "Pooch":
18+
def _get_signature_pooch() -> Pooch:
1719
# use indirection to enable pooch as optional dependency w/o lazy loading
1820
try:
1921
import pooch

sainsc/io/_io.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from collections.abc import Collection
24
from pathlib import Path
35
from typing import TYPE_CHECKING, Literal, get_args
@@ -457,7 +459,7 @@ def read_StereoSeq_bins(
457459
sep: str = "\t",
458460
n_threads: int | None = None,
459461
**kwargs,
460-
) -> "AnnData | SpatialData":
462+
) -> AnnData | SpatialData:
461463
"""
462464
Read a Stereo-seq GEM file into bins.
463465

sainsc/lazykde/_LazyKDE.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def find_local_maxima(self, min_dist: int, min_area: int = 0):
281281

282282
def load_local_maxima(
283283
self, genes: Iterable[str] | None = None, *, spatialdata: bool = False
284-
) -> "AnnData | SpatialData":
284+
) -> AnnData | SpatialData:
285285
"""
286286
Load the gene expression (KDE) of the local maxima.
287287

0 commit comments

Comments
 (0)