Skip to content

Commit 8521756

Browse files
committed
pyright
1 parent 613d29c commit 8521756

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

pandas-stubs/core/construction.pyi

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ from pandas.core.dtypes.dtypes import (
7777
# copy: bool = True
7878
# ) -> NumpyExtensionArray: ...
7979
@overload
80-
def array( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
80+
def array( # type: ignore[overload-overlap]
8181
data: SequenceNotStr[Any] | np_ndarray | ExtensionArray | Index | Series,
8282
dtype: CategoryDtypeArg,
8383
copy: bool = True,
@@ -111,14 +111,8 @@ def array(
111111
copy: bool = True,
112112
) -> SparseArray: ...
113113
@overload
114-
def array( # type: ignore[overload-overlap]
115-
data: (
116-
Sequence[bool | np.bool | NAType | None]
117-
| np_ndarray_bool
118-
| BooleanArray
119-
| Index[bool]
120-
| Series[int]
121-
),
114+
def array( # type: ignore[overload-overlap] # pyright: ignore[reportOverlappingOverload]
115+
data: Sequence[bool | np.bool | NAType | None] | np_ndarray_bool | BooleanArray,
122116
dtype: PandasBooleanDtypeArg | None = None,
123117
copy: bool = True,
124118
) -> BooleanArray: ...

0 commit comments

Comments
 (0)