]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in `Lib/_pydecimal.py` (#127700)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Thu, 12 Dec 2024 20:27:29 +0000 (20:27 +0000)
committerGitHub <noreply@github.com>
Thu, 12 Dec 2024 20:27:29 +0000 (22:27 +0200)
Lib/_pydecimal.py

index 5b60570c6c592aa44c9a23ace4616ce6d35f9762..ec036199331396c90369b2b1052c5432b9070762 100644 (file)
@@ -97,7 +97,7 @@ class DecimalException(ArithmeticError):
 
     Used exceptions derive from this.
     If an exception derives from another exception besides this (such as
-    Underflow (Inexact, Rounded, Subnormal) that indicates that it is only
+    Underflow (Inexact, Rounded, Subnormal)) that indicates that it is only
     called if the others are present.  This isn't actually used for
     anything, though.
 
@@ -145,7 +145,7 @@ class InvalidOperation(DecimalException):
     x ** (+-)INF
     An operand is invalid
 
-    The result of the operation after these is a quiet positive NaN,
+    The result of the operation after this is a quiet positive NaN,
     except when the cause is a signaling NaN, in which case the result is
     also a quiet NaN, but with the original sign, and an optional
     diagnostic information.