File tree 4 files changed +4
-4
lines changed 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5377,7 +5377,7 @@ def _test() -> None:
5377
5377
from pandas .util .version import Version
5378
5378
5379
5379
if Version (np .__version__ ) >= Version ("2" ):
5380
- np .set_printoptions (legacy = "1.25" )
5380
+ np .set_printoptions (legacy = "1.25" ) # type: ignore[arg-type] # `legacy="1.25"` only available in `nump>=2`
5381
5381
except TypeError :
5382
5382
pass
5383
5383
Original file line number Diff line number Diff line change @@ -2652,7 +2652,7 @@ def _test() -> None:
2652
2652
if Version (np .__version__ ) >= Version ("2" ):
2653
2653
# Numpy 2.0+ changed its string format,
2654
2654
# adding type information to numeric scalars.
2655
- np .set_printoptions (legacy = "1.25" )
2655
+ np .set_printoptions (legacy = "1.25" ) # type: ignore[arg-type] # `legacy="1.25"` only available in `nump>=2`
2656
2656
2657
2657
globs = pyspark .pandas .indexes .base .__dict__ .copy ()
2658
2658
globs ["ps" ] = pyspark .pandas
Original file line number Diff line number Diff line change @@ -1840,7 +1840,7 @@ def _test() -> None:
1840
1840
if Version (np .__version__ ) >= Version ("2" ):
1841
1841
# Numpy 2.0+ changed its string format,
1842
1842
# adding type information to numeric scalars.
1843
- np .set_printoptions (legacy = "1.25" )
1843
+ np .set_printoptions (legacy = "1.25" ) # type: ignore[arg-type] # `legacy="1.25"` only available in `nump>=2`
1844
1844
1845
1845
globs = pyspark .pandas .indexing .__dict__ .copy ()
1846
1846
globs ["ps" ] = pyspark .pandas
Original file line number Diff line number Diff line change @@ -3738,7 +3738,7 @@ def _test() -> None:
3738
3738
if Version (np .__version__ ) >= Version ("2" ):
3739
3739
# Numpy 2.0+ changed its string format,
3740
3740
# adding type information to numeric scalars.
3741
- np .set_printoptions (legacy = "1.25" )
3741
+ np .set_printoptions (legacy = "1.25" ) # type: ignore[arg-type] # `legacy="1.25"` only available in `nump>=2`
3742
3742
3743
3743
globs = pyspark .pandas .namespace .__dict__ .copy ()
3744
3744
globs ["ps" ] = pyspark .pandas
You can’t perform that action at this time.
0 commit comments