Skip to content

Commit 4a5392c

Browse files
committed
fix merge
1 parent 7a6a4e1 commit 4a5392c

File tree

2 files changed

+15
-24
lines changed

2 files changed

+15
-24
lines changed

pandas-stubs/_typing.pyi

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ IntDtypeArg: TypeAlias = (
137137
)
138138
UIntDtypeArg: TypeAlias = (
139139
# Pandas nullable unsigned integer types and their string aliases
140-
pd.UInt8Dtype # noqa: Y030
140+
pd.UInt8Dtype # noqa: PYI030
141141
| pd.UInt16Dtype
142142
| pd.UInt32Dtype
143143
| pd.UInt64Dtype
@@ -164,15 +164,6 @@ UIntDtypeArg: TypeAlias = (
164164
# PyArrow unsigned integer types and their string aliases
165165
| Literal["uint8[pyarrow]", "uint16[pyarrow]", "uint32[pyarrow]", "uint64[pyarrow]"]
166166
)
167-
StrDtypeArg: TypeAlias = (
168-
# Builtin str type and its string alias
169-
type[str] # noqa: PYI030
170-
| Literal["str"]
171-
# Pandas nullable string type and its string alias
172-
| pd.StringDtype
173-
| Literal["string"]
174-
)
175-
BytesDtypeArg: TypeAlias = type[bytes]
176167
FloatDtypeArg: TypeAlias = (
177168
# Builtin float type and its string alias
178169
type[float] # noqa: PYI030
@@ -335,7 +326,7 @@ TimestampDtypeArg: TypeAlias = Literal[
335326

336327
StrDtypeArg: TypeAlias = (
337328
# Builtin str type and its string alias
338-
type[str] # noqa: Y030
329+
type[str] # noqa: PYI030
339330
| Literal["str"]
340331
# Pandas nullable string type and its string alias
341332
| pd.StringDtype
@@ -349,7 +340,7 @@ StrDtypeArg: TypeAlias = (
349340
)
350341
BytesDtypeArg: TypeAlias = (
351342
# Builtin bytes type and its string alias
352-
type[bytes] # noqa: Y030
343+
type[bytes] # noqa: PYI030
353344
| Literal["bytes"]
354345
# Numpy bytes type and its string alias
355346
# https://numpy.org/doc/stable/reference/arrays.scalars.html#numpy.bytes_
@@ -362,7 +353,7 @@ CategoryDtypeArg: TypeAlias = CategoricalDtype | Literal["category"]
362353

363354
ObjectDtypeArg: TypeAlias = (
364355
# Builtin object type and its string alias
365-
type[object] # noqa: Y030
356+
type[object] # noqa: PYI030
366357
| Literal["object"]
367358
# Numpy object type and its string alias
368359
# https://numpy.org/doc/stable/reference/arrays.scalars.html#numpy.object_

tests/test_series.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2568,17 +2568,17 @@ def test_all_astype_args_tested() -> None:
25682568
}
25692569
TESTED_ASTYPE_ARGS: list[tuple[Any, type]] = (
25702570
ASTYPE_BOOL_ARGS
2571-
+ ASTYPE_INT_ARGS # noqa: W503
2572-
+ ASTYPE_UINT_ARGS # noqa: W503
2573-
+ ASTYPE_FLOAT_ARGS # noqa: W503
2574-
+ ASTYPE_COMPLEX_ARGS # noqa: W503
2575-
+ ASTYPE_TIMEDELTA_ARGS # noqa: W503
2576-
+ ASTYPE_TIMESTAMP_ARGS # noqa: W503
2577-
+ ASTYPE_BYTES_ARGS # noqa: W503
2578-
+ ASTYPE_STRING_ARGS # noqa: W503
2579-
+ ASTYPE_CATEGORICAL_ARGS # noqa: W503
2580-
+ ASTYPE_OBJECT_ARGS # noqa: W503
2581-
+ ASTYPE_VOID_ARGS # noqa: W503
2571+
+ ASTYPE_INT_ARGS
2572+
+ ASTYPE_UINT_ARGS
2573+
+ ASTYPE_FLOAT_ARGS
2574+
+ ASTYPE_COMPLEX_ARGS
2575+
+ ASTYPE_TIMEDELTA_ARGS
2576+
+ ASTYPE_TIMESTAMP_ARGS
2577+
+ ASTYPE_BYTES_ARGS
2578+
+ ASTYPE_STRING_ARGS
2579+
+ ASTYPE_CATEGORICAL_ARGS
2580+
+ ASTYPE_OBJECT_ARGS
2581+
+ ASTYPE_VOID_ARGS
25822582
)
25832583

25842584
TESTED_ALIASES: set[str] = {

0 commit comments

Comments
 (0)