Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
cd925dd
1
Parent(s):
fd4c500
build: remove typing_extensions
Browse files- environment.yml +0 -1
- pysr/sr.py +1 -6
- requirements.txt +0 -1
environment.yml
CHANGED
@@ -9,4 +9,3 @@ dependencies:
|
|
9 |
- scikit-learn>=1.0.0,<2.0.0
|
10 |
- pyjuliacall>=0.9.15,<0.10.0
|
11 |
- click>=7.0.0,<9.0.0
|
12 |
-
- typing_extensions>=4.0.0,<5.0.0
|
|
|
9 |
- scikit-learn>=1.0.0,<2.0.0
|
10 |
- pyjuliacall>=0.9.15,<0.10.0
|
11 |
- click>=7.0.0,<9.0.0
|
|
pysr/sr.py
CHANGED
@@ -12,12 +12,7 @@ from datetime import datetime
|
|
12 |
from io import StringIO
|
13 |
from multiprocessing import cpu_count
|
14 |
from pathlib import Path
|
15 |
-
from typing import Callable, Dict, List, Optional, Tuple, Union
|
16 |
-
|
17 |
-
if sys.version_info >= (3, 8):
|
18 |
-
from typing import Literal
|
19 |
-
else:
|
20 |
-
from typing_extensions import Literal
|
21 |
|
22 |
import numpy as np
|
23 |
import pandas as pd
|
|
|
12 |
from io import StringIO
|
13 |
from multiprocessing import cpu_count
|
14 |
from pathlib import Path
|
15 |
+
from typing import Callable, Dict, List, Literal, Optional, Tuple, Union, cast
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
import numpy as np
|
18 |
import pandas as pd
|
requirements.txt
CHANGED
@@ -5,4 +5,3 @@ scikit_learn>=1.0.0,<2.0.0
|
|
5 |
juliacall==0.9.20
|
6 |
click>=7.0.0,<9.0.0
|
7 |
setuptools>=50.0.0
|
8 |
-
typing_extensions>=4.0.0,<5.0.0; python_version < "3.8"
|
|
|
5 |
juliacall==0.9.20
|
6 |
click>=7.0.0,<9.0.0
|
7 |
setuptools>=50.0.0
|
|