Skip to content

Commit d6c468e

Browse files
committed
floating
1 parent 1657ddf commit d6c468e

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

pandas-stubs/_typing.pyi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,7 @@ PyArrowTimestampDtypeArg: TypeAlias = Literal[
504504
"timestamp[ns][pyarrow]",
505505
]
506506
TimestampDtypeArg: TypeAlias = (
507-
PandasTimestampDtypeArg
508-
| PandasAstypeTimestampDtypeArg
509-
| NumpyTimestampDtypeArg
510-
| PyArrowTimestampDtypeArg
507+
PandasTimestampDtypeArg | NumpyTimestampDtypeArg | PyArrowTimestampDtypeArg
511508
)
512509
# Builtin str type and its string alias
513510
BuiltinStrDtypeArg: TypeAlias = type[str] | Literal["str"]

pandas-stubs/core/series.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ from pandas.core.api import (
6262
Int64Dtype as Int64Dtype,
6363
)
6464
from pandas.core.arrays.base import ExtensionArray
65-
from pandas.core.arrays.boolean import BooleanDtype
65+
from pandas.core.arrays.boolean import (
66+
BooleanDtype,
67+
)
6668
from pandas.core.arrays.categorical import (
6769
Categorical,
6870
CategoricalAccessor,

tests/arrays/test_boolean_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ def test_constructor() -> None:
2525

2626

2727
@pytest.mark.parametrize("dtype", get_dtype(PandasBooleanDtypeArg))
28-
def test_constructors_dtype(dtype: PandasBooleanDtypeArg):
28+
def test_constructor_dtype(dtype: PandasBooleanDtypeArg):
2929
check(assert_type(pd.array([True], dtype=dtype), BooleanArray), BooleanArray)

tests/arrays/test_numpy_extension_array.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
NumpyNotTimeDtypeArg,
1010
check,
1111
get_dtype,
12+
skip_platform,
1213
)
1314

1415

@@ -40,13 +41,14 @@ def test_constructor() -> None:
4041

4142

4243
@pytest.mark.parametrize("dtype", get_dtype(BuiltinDtypeArg | NumpyNotTimeDtypeArg))
43-
def test_constructors_dtype(dtype: BuiltinDtypeArg | NumpyNotTimeDtypeArg):
44+
def test_constructor_dtype(dtype: BuiltinDtypeArg | NumpyNotTimeDtypeArg):
4445
if dtype == "V" or "void" in str(dtype):
4546
check(
4647
assert_type(pd.array([b"1"], dtype=dtype), NumpyExtensionArray),
4748
NumpyExtensionArray,
4849
)
4950
else:
51+
skip_platform(lambda: pd.array([1], dtype=dtype), dtype)
5052
check(
5153
assert_type(pd.array([1], dtype=dtype), NumpyExtensionArray),
5254
NumpyExtensionArray,

0 commit comments

Comments
 (0)