File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,5 +9,4 @@ dependencies:
99 - scikit-learn>=1.0.0,<2.0.0
1010 - pyjuliacall>=0.9.24,<0.9.26
1111 - click>=7.0.0,<9.0.0
12- - beartype>=0.19,<0.22
1312 - typing-extensions>=4.0.0,<5.0.0
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " pysr"
7- version = " 1.5.7 "
7+ version = " 1.5.8 "
88authors = [
99 {name = " Miles Cranmer" , email = " miles.cranmer@gmail.com" },
1010]
@@ -24,13 +24,13 @@ dependencies = [
2424 " scikit_learn>=1.0.0,<2.0.0" ,
2525 " juliacall>=0.9.24,<0.9.26" ,
2626 " click>=7.0.0,<9.0.0" ,
27- " beartype>=0.19,<0.22" ,
2827 " typing-extensions>=4.0.0,<5.0.0" ,
2928]
3029
3130[project .optional-dependencies ]
3231dev = [
3332 " coverage>=7,<8" ,
33+ " beartype>=0.19,<0.22" ,
3434 " ipykernel>=6,<7" ,
3535 " ipython>=8,<9" ,
3636 " jax[cpu]>=0.4,<0.6" ,
Original file line number Diff line number Diff line change 1919
2020import numpy as np
2121import pandas as pd
22- from beartype .typing import List
2322from numpy import ndarray
2423from numpy .typing import NDArray
2524from sklearn .base import BaseEstimator , MultiOutputMixin , RegressorMixin
7069except ImportError :
7170 OLD_SKLEARN = True
7271
72+ try :
73+ from typing import List
74+ except ImportError :
75+ from typing_extensions import List
76+
77+
7378ALREADY_RAN = False
7479
7580pysr_logger = logging .getLogger (__name__ )
Original file line number Diff line number Diff line change 66from pathlib import Path
77from typing import Any , TypeVar , Union
88
9- from beartype .typing import List
109from numpy import ndarray
1110from sklearn .utils .validation import _check_feature_names_in # type: ignore
1211
12+ try :
13+ from typing import List
14+ except ImportError :
15+ from typing_extensions import List
16+
1317T = TypeVar ("T" , bound = Any )
1418
1519ArrayLike = Union [ndarray , List [T ]]
You can’t perform that action at this time.
0 commit comments