mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
bpo-39218: Improve accuracy of variance calculation (GH-27960)
This commit is contained in:
parent
044e8d866f
commit
793f55bde9
3 changed files with 23 additions and 14 deletions
|
@ -1210,6 +1210,9 @@ class UnivariateTypeMixin:
|
|||
def __add__(self, other):
|
||||
return type(self)(super().__add__(other))
|
||||
__radd__ = __add__
|
||||
def __mul__(self, other):
|
||||
return type(self)(super().__mul__(other))
|
||||
__rmul__ = __mul__
|
||||
return (float, Decimal, Fraction, MyFloat)
|
||||
|
||||
def test_types_conserved(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue