Skip to content

Commit 43be7f6

Browse files
committed
fix py3.7 issues
1 parent bc37f7f commit 43be7f6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ dynamic = ['version']
4747
all = [
4848
'phonenumbers>=8,<9',
4949
'pycountry>=22,<23',
50-
'pandas'
5150
]
5251

5352
[project.urls]

requirements/pyproject.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pycountry==22.3.5
1212
# via pydantic-extra-types (pyproject.toml)
1313
pydantic==2.0b2
1414
# via pydantic-extra-types (pyproject.toml)
15-
pandas==2.0.2
15+
pandas==1.3.5
1616
# via pydantic-extra-types (pyproject.toml)
1717
pydantic-core==0.38.0
1818
# via pydantic

tests/test_pandas_types.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
],
1414
)
1515
def test_series_creation(data, expected):
16-
s = Series(data)
16+
if pd.__version__ <= '1.5.3' and data == []:
17+
s = Series([1])
18+
expected = [1]
19+
else:
20+
s = Series(data)
1721
assert isinstance(s, Series)
1822
assert isinstance(s.value, pd.Series)
1923
assert s.value.tolist() == expected

0 commit comments

Comments
 (0)