Skip to content

Commit dc86f02

Browse files
committed
Cleaned up array/ type hints
1 parent 09af128 commit dc86f02

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pandas/core/arrays/array_.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
def array(data: Sequence[object],
16-
dtype: Optional[Union[str, np.dtype, ExtensionDtype]] = None,
16+
dtype: Optional[str, np.dtype, ExtensionDtype] = None,
1717
copy: bool = True,
1818
) -> ExtensionArray:
1919
"""

pandas/core/arrays/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def take(
726726
self,
727727
indices: Sequence[int],
728728
allow_fill: bool = False,
729-
fill_value: Optional[Any] = None
729+
fill_value: Any = None
730730
) -> 'ExtensionArray':
731731
"""
732732
Take elements from an array.

pandas/core/arrays/sparse.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ def _get_fill(arr: 'SparseArray') -> np.ndarray:
402402
def _sparse_array_op(
403403
left: 'SparseArray',
404404
right: 'SparseArray',
405-
op: Callable, name: str
405+
op: Callable,
406+
name: str
406407
) -> Any:
407408
"""
408409
Perform a binary operation between two arrays.

0 commit comments

Comments
 (0)