From c25c7feed0820d0be46c4dad329d7458f74a791c Mon Sep 17 00:00:00 2001 From: Ilya Torbin Date: Sun, 19 Jul 2026 20:19:39 +0300 Subject: [PATCH] Fix typos in Py_tp_base C API documentation Correct "targetting" -> "targeting" and "pefer" -> "prefer" in the soft-deprecation note for the Py_tp_base type slot. --- Doc/c-api/type.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst index 6b68c0d085589a1..99a7ed8b1cb7b8e 100644 --- a/Doc/c-api/type.rst +++ b/Doc/c-api/type.rst @@ -699,7 +699,7 @@ but need extra remarks for use as slots: .. soft-deprecated:: 3.15 - When not targetting older Python versions, pefer :c:macro:`!Py_tp_bases`. + When not targeting older Python versions, prefer :c:macro:`!Py_tp_bases`. The following slots do not correspond to public fields in the underlying structures: