Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
  • Loading branch information
JelleZijlstra and hugovk authored May 19, 2026
commit ca9d990d4fa85edfccd3b9061cc5f75655bf6042
7 changes: 5 additions & 2 deletions peps/pep-0834.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ understand that certain base classes or decorators radically change what a class
does, instead of putting the special behavior of these constructs front and center in the
syntax.

This PEP proposes a flexible new syntax to declare these constructs using *class builders*:
This PEP proposes a flexible new syntax to declare these constructs using *class builders*::

builder Simple:
...
Expand Down Expand Up @@ -93,7 +93,10 @@ Syntax
------

The grammar for class definitions is extended to allow a name before the
class name::
class name:

.. code-block:: peg


class_def_raw:
| 'class' NAME type_params? ['(' arguments? ')'] ':' block
Expand Down
Loading