@@ -1917,21 +1917,21 @@ def _merge_blocks(
1917
1917
1918
1918
1919
1919
def _compare_or_regex_search (
1920
- a : ArrayLike ,
1921
- b : Union [Scalar , Pattern ],
1920
+ a : Union [ ArrayLike , Scalar ] ,
1921
+ b : Union [ArrayLike , Scalar , Pattern ],
1922
1922
regex : bool = False ,
1923
1923
mask : Optional [ArrayLike ] = None ,
1924
1924
) -> Union [ArrayLike , bool ]:
1925
1925
"""
1926
- Compare two array_like inputs of the same shape or two scalar values
1926
+ Compare two array-like or scalar inputs.
1927
1927
1928
1928
Calls operator.eq or re.search, depending on regex argument. If regex is
1929
1929
True, perform an element-wise regex matching.
1930
1930
1931
1931
Parameters
1932
1932
----------
1933
- a : array_like
1934
- b : scalar or regex pattern
1933
+ a : array-like or scalar
1934
+ b : array-like, scalar, or regex pattern
1935
1935
regex : bool, default False
1936
1936
mask : array_like or None (default)
1937
1937
@@ -1941,7 +1941,9 @@ def _compare_or_regex_search(
1941
1941
"""
1942
1942
1943
1943
def _check_comparison_types (
1944
- result : Union [ArrayLike , bool ], a : ArrayLike , b : Union [Scalar , Pattern ],
1944
+ result : Union [ArrayLike , bool ],
1945
+ a : Union [ArrayLike , Scalar ],
1946
+ b : Union [ArrayLike , Scalar , Pattern ],
1945
1947
):
1946
1948
"""
1947
1949
Raises an error if the two arrays (a,b) cannot be compared.
0 commit comments