cpython/Doc/tools
Miss Islington (bot) e9c7cc1f0b
[3.15] gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases (GH-151252) (GH-151606)
gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases (GH-151252)

The initial implementation of PEP 820 worsened the error message
when non-types are given as base types in Py_tp_bases & Py_tp_base.
Bring back the 'bases must be types' wording and add a 'got' note for
easier debugging.

Improve slot ID documentation, and soft-deprecate Py_tp_base
(as per the PEP).
(cherry picked from commit 16185e9fe2)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-06-18 10:17:15 +02:00
..
extensions [3.15] Docs: Only add profiling-sampling-visualization.{css,js} to files when necessary (GH-151150) 2026-06-09 13:24:28 +00:00
static Revert "Doc: Show object descriptions in the table of contents (#125757)" (#128406) 2025-01-02 14:35:00 +00:00
templates [3.15] gh-149902: Remove dead packaging docs link and add a new section for external resources (GH-150030) (#150241) 2026-05-22 11:40:49 +00:00
.nitignore [3.15] gh-101100: Fix Sphinx nitpick in unittest.mock.rst (GH-151302) (#151355) 2026-06-11 16:42:23 +01:00
check-epub.py GH-136155: Fail the EPUB check on fatal errors (#137351) 2025-08-08 02:32:20 +01:00
check-html-ids.py gh-145000: Run check-html-ids.py in CI (#145632) 2026-04-01 15:10:27 +02:00
check-warnings.py Update pre-commit with zizmor and Ruff fixes (#143095) 2025-12-23 17:51:02 +02:00
removed-ids.txt [3.15] gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases (GH-151252) (GH-151606) 2026-06-18 10:17:15 +02:00