Skip to content

Commit ca9d990

Browse files
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent e36a310 commit ca9d990

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

peps/pep-0834.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ understand that certain base classes or decorators radically change what a class
6565
does, instead of putting the special behavior of these constructs front and center in the
6666
syntax.
6767

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

7070
builder Simple:
7171
...
@@ -93,7 +93,10 @@ Syntax
9393
------
9494

9595
The grammar for class definitions is extended to allow a name before the
96-
class name::
96+
class name:
97+
98+
.. code-block:: peg
99+
97100
98101
class_def_raw:
99102
| 'class' NAME type_params? ['(' arguments? ')'] ':' block

0 commit comments

Comments
 (0)