From 8a84eb75a94ead1cc0dcdde635096e58910d9356 Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Mon, 4 Mar 2024 19:57:01 +0200 Subject: [PATCH] gh-116316: Fix typo in `UNARY_FUNC(PyNumber_Positive)` macros (GH-116317) --- Objects/abstract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/abstract.c b/Objects/abstract.c index 07d4b89fe18..8357175aa55 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1390,7 +1390,7 @@ _PyNumber_InPlacePowerNoMod(PyObject *lhs, PyObject *rhs) } UNARY_FUNC(PyNumber_Negative, nb_negative, __neg__, "unary -") -UNARY_FUNC(PyNumber_Positive, nb_positive, __pow__, "unary +") +UNARY_FUNC(PyNumber_Positive, nb_positive, __pos__, "unary +") UNARY_FUNC(PyNumber_Invert, nb_invert, __invert__, "unary ~") UNARY_FUNC(PyNumber_Absolute, nb_absolute, __abs__, "abs()")