Skip to content

Introduce "type names" section to the style guide#1828

Open
sirosen wants to merge 2 commits into
python:mainfrom
sirosen:add-type-names-style-guide
Open

Introduce "type names" section to the style guide#1828
sirosen wants to merge 2 commits into
python:mainfrom
sirosen:add-type-names-style-guide

Conversation

@sirosen
Copy link
Copy Markdown

@sirosen sirosen commented Jun 7, 2026

Resolves #1821

This enhancement to the style guide was motivated by a desire to resolve some inconsistent phrasing in the docs, which caused some disagreement in a CPython docs PR.

The new section describes guidance for how type names should be documented. Class references or unlinked class styling are preferred, and other styles are described for use only when they are superior to the class name.


The issue has no comments, but I introduced the idea in the docs community where it got some positive feedback.
The discussion there helped to shape the issue, which has some basic 👍 s from a couple of core devs.

Resolves python#1821

This enhancement to the style guide was motivated by a desire to resolve
some inconsistent phrasing in the docs, which caused some disagreement
in a CPython docs PR.

The new section describes guidance for how type names should be
documented. Class references or unlinked class styling are preferred, and
other styles are described for use only when they are superior to the
class name.
@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented Jun 7, 2026

Documentation build overview

📚 CPython devguide | 🛠️ Build #33026588 | 📁 Comparing 1328257 against latest (7277209)

  🔍 Preview build  

4 files changed
± index.html
± documentation/index.html
± versions/index.html
± documentation/style-guide/index.html

Comment thread documentation/style-guide.rst Outdated
Co-authored-by: Stan Ulbrych <stan@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Expand the style-guide to cover how type names should be written in prose

3 participants