Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
864171c
1
Parent(s):
f5811bc
Install `typing_extensions` for compat with older Python
Browse files- pysr/sr.py +6 -1
- requirements.txt +1 -0
pysr/sr.py
CHANGED
@@ -11,7 +11,12 @@ from datetime import datetime
|
|
11 |
from io import StringIO
|
12 |
from multiprocessing import cpu_count
|
13 |
from pathlib import Path
|
14 |
-
from typing import Callable, Dict, List,
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
import numpy as np
|
17 |
import pandas as pd
|
|
|
11 |
from io import StringIO
|
12 |
from multiprocessing import cpu_count
|
13 |
from pathlib import Path
|
14 |
+
from typing import Callable, Dict, List, Optional, Tuple, Union
|
15 |
+
|
16 |
+
try:
|
17 |
+
from typing import Literal
|
18 |
+
except ImportError:
|
19 |
+
from typing_extensions import Literal
|
20 |
|
21 |
import numpy as np
|
22 |
import pandas as pd
|
requirements.txt
CHANGED
@@ -5,3 +5,4 @@ scikit_learn>=1.0.0
|
|
5 |
julia>=0.6.0
|
6 |
click>=7.0.0
|
7 |
setuptools>=50.0.0
|
|
|
|
5 |
julia>=0.6.0
|
6 |
click>=7.0.0
|
7 |
setuptools>=50.0.0
|
8 |
+
typing_extensions>=4.0.0,<5.0.0
|