Skip to content

Commit e2d0220

Browse files
committed
Remove typing-extensions dependency and just use standard library
1 parent 6e8071f commit e2d0220

File tree

10 files changed

+7
-17
lines changed

10 files changed

+7
-17
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ dependencies = [
2828
"scipy < 1.16",
2929
"zarr >= 2.10.0, != 2.11.0, != 2.11.1, != 2.11.2, < 3",
3030
"numba",
31-
"typing-extensions",
3231
"fsspec != 2021.6.*",
3332
"scikit-learn",
3433
"pandas",
@@ -97,7 +96,6 @@ known_third_party = [
9796
"sgkit_plink",
9897
"sklearn",
9998
"sphinx",
100-
"typing_extensions",
10199
"xarray",
102100
"yaml",
103101
"zarr",

requirements-numpy1.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ numpy < 2
22
xarray < 2025.03.1
33
dask[array,dataframe] >= 2023.01.0, <= 2024.8.0
44
scipy < 1.16
5-
typing-extensions
65
numba
76
zarr >= 2.10.0, != 2.11.0, != 2.11.1, != 2.11.2, < 3
87
fsspec != 2021.6.*

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ numpy < 2.2
22
xarray < 2025.03.1
33
dask[array,dataframe] >= 2023.01.0, <= 2024.8.0
44
scipy < 1.16
5-
typing-extensions
65
numba
76
zarr >= 2.10.0, != 2.11.0, != 2.11.1, != 2.11.2, < 3
87
fsspec != 2021.6.*

sgkit/distance/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import typing
2+
from typing import Literal
23

34
import dask.array as da
45
import numpy as np
5-
from typing_extensions import Literal
66

77
from sgkit.typing import ArrayLike
88

sgkit/stats/aggregation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
from typing import Hashable
1+
from typing import Hashable, Literal
22

33
import numpy as np
44
import xarray as xr
5-
from typing_extensions import Literal
65
from xarray import Dataset
76

87
import sgkit.distarray as da

sgkit/stats/genedrop.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
from typing import Hashable, Optional
1+
from typing import Hashable, Literal, Optional
22

33
import dask.array as da
44
import numpy as np
55
import xarray as xr
6-
from typing_extensions import Literal
76
from xarray import Dataset
87

98
from sgkit import variables

sgkit/stats/grm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
from typing import Hashable, Optional, Tuple
1+
from typing import Hashable, Literal, Optional, Tuple
22

33
import dask.array as da
44
import numpy as np
5-
from typing_extensions import Literal
65
from xarray import Dataset
76

87
from sgkit import variables

sgkit/stats/ibs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
from typing import Hashable
1+
from typing import Hashable, Literal
22

33
import dask.array as da
4-
from typing_extensions import Literal
54
from xarray import Dataset
65

76
from sgkit import variables

sgkit/stats/pca.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
from typing import Any, Optional, Union
1+
from typing import Any, Literal, Optional, Union
22

33
import numpy as np
44
import xarray as xr
55
from sklearn.base import BaseEstimator
66
from sklearn.pipeline import Pipeline
7-
from typing_extensions import Literal
87
from xarray import DataArray, Dataset
98

109
import sgkit.distarray as da

sgkit/stats/pedigree.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import warnings
2-
from typing import Hashable, Tuple
2+
from typing import Hashable, Literal, Optional, Tuple
33

44
import dask.array as da
55
import numpy as np
66
import xarray as xr
7-
from typing_extensions import Literal, Optional
87
from xarray import Dataset
98

109
from sgkit import variables

0 commit comments

Comments
 (0)