File tree 3 files changed +16
-2
lines changed
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def all_arithmetic_operators(request):
101
101
def all_compare_operators (request ):
102
102
"""
103
103
Fixture for dunder names for common compare operations
104
- """
104
+ """
105
105
return request .param
106
106
107
107
Original file line number Diff line number Diff line change @@ -690,6 +690,7 @@ def _add_numeric_methods_binary(cls):
690
690
cls .__rdiv__ = cls ._make_arithmetic_op (ops .rdiv )
691
691
692
692
cls .__divmod__ = cls ._make_arithmetic_op (divmod )
693
+ cls .__rdivmod__ = cls ._make_arithmetic_op (ops .rdivmod )
693
694
694
695
@classmethod
695
696
def make_comparison_op (cls , op ):
Original file line number Diff line number Diff line change @@ -1035,7 +1035,20 @@ def na_op(x, y):
1035
1035
return result
1036
1036
1037
1037
def safe_na_op (lvalues , rvalues ):
1038
- # all others
1038
+ """
1039
+ return the result of evaluating na_op on the passed in values
1040
+
1041
+ try coercion to object type if the native types are not compatible
1042
+
1043
+ Parameters
1044
+ ----------
1045
+ lvalues : array-like
1046
+ rvalues : array-like
1047
+
1048
+ Raises
1049
+ ------
1050
+ invalid operation raises TypeError
1051
+ """
1039
1052
try :
1040
1053
with np .errstate (all = 'ignore' ):
1041
1054
return na_op (lvalues , rvalues )
You can’t perform that action at this time.
0 commit comments