Skip to content

Commit 8a84eb7

Browse files
authored
gh-116316: Fix typo in UNARY_FUNC(PyNumber_Positive) macros (GH-116317)
1 parent 60743a9 commit 8a84eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/abstract.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ _PyNumber_InPlacePowerNoMod(PyObject *lhs, PyObject *rhs)
13901390
}
13911391

13921392
UNARY_FUNC(PyNumber_Negative, nb_negative, __neg__, "unary -")
1393-
UNARY_FUNC(PyNumber_Positive, nb_positive, __pow__, "unary +")
1393+
UNARY_FUNC(PyNumber_Positive, nb_positive, __pos__, "unary +")
13941394
UNARY_FUNC(PyNumber_Invert, nb_invert, __invert__, "unary ~")
13951395
UNARY_FUNC(PyNumber_Absolute, nb_absolute, __abs__, "abs()")
13961396

0 commit comments

Comments
 (0)