@@ -144,14 +144,14 @@ def ensure_python_int(value: int | np.integer) -> int:
144
144
145
145
146
146
def classes (* klasses ) -> Callable :
147
- """evaluate if the tipo is a subclass of the klasses"""
147
+ """Evaluate if the tipo is a subclass of the klasses. """
148
148
return lambda tipo : issubclass (tipo , klasses )
149
149
150
150
151
151
def classes_and_not_datetimelike (* klasses ) -> Callable :
152
152
"""
153
- evaluate if the tipo is a subclass of the klasses
154
- and not a datetimelike
153
+ Evaluate if the tipo is a subclass of the klasses
154
+ and not a datetimelike.
155
155
"""
156
156
return lambda tipo : (
157
157
issubclass (tipo , klasses )
@@ -679,7 +679,7 @@ def is_integer_dtype(arr_or_dtype) -> bool:
679
679
"""
680
680
Check whether the provided array or dtype is of an integer dtype.
681
681
682
- Unlike in `in_any_int_dtype `, timedelta64 instances will return False.
682
+ Unlike in `is_any_int_dtype `, timedelta64 instances will return False.
683
683
684
684
The nullable Integer dtypes (e.g. pandas.Int64Dtype) are also considered
685
685
as integer by this function.
@@ -731,7 +731,7 @@ def is_signed_integer_dtype(arr_or_dtype) -> bool:
731
731
"""
732
732
Check whether the provided array or dtype is of a signed integer dtype.
733
733
734
- Unlike in `in_any_int_dtype `, timedelta64 instances will return False.
734
+ Unlike in `is_any_int_dtype `, timedelta64 instances will return False.
735
735
736
736
The nullable Integer dtypes (e.g. pandas.Int64Dtype) are also considered
737
737
as integer by this function.
@@ -1525,7 +1525,7 @@ def is_complex_dtype(arr_or_dtype) -> bool:
1525
1525
1526
1526
def _is_dtype (arr_or_dtype , condition ) -> bool :
1527
1527
"""
1528
- Return a boolean if the condition is satisfied for the arr_or_dtype.
1528
+ Return true if the condition is satisfied for the arr_or_dtype.
1529
1529
1530
1530
Parameters
1531
1531
----------
@@ -1584,7 +1584,7 @@ def get_dtype(arr_or_dtype) -> DtypeObj:
1584
1584
1585
1585
def _is_dtype_type (arr_or_dtype , condition ) -> bool :
1586
1586
"""
1587
- Return a boolean if the condition is satisfied for the arr_or_dtype.
1587
+ Return true if the condition is satisfied for the arr_or_dtype.
1588
1588
1589
1589
Parameters
1590
1590
----------
0 commit comments