Skip to content

Commit c9eaa72

Browse files
committed
final fixes
1 parent b0a242d commit c9eaa72

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

pep.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
PEP: 827
22
Title: Type Manipulation
3-
Author: Michael J. Sullivan <sully@vercel.com>, Daniel W. Park <daniel.park@vercel.com>, Yury Selivanov <yury@vercel.com>
3+
Author: Michael J. Sullivan <sully@vercel.com>,
4+
Daniel W. Park <daniel.park@vercel.com>,
5+
Yury Selivanov <yury@vercel.com>
46
Discussions-To: Pending
57
Status: Draft
68
Type: Standards Track
@@ -1017,7 +1019,7 @@ initializer).
10171019
dataclasses-style method generation
10181020
-----------------------------------
10191021

1020-
``InitFnType`` generates a ``Member`` for a new `__init__` function
1022+
``InitFnType`` generates a ``Member`` for a new ``__init__`` function
10211023
based on iterating over all attributes.
10221024

10231025
``GetDefault`` here is borrowed from our FastAPI-like example above.
@@ -1055,8 +1057,8 @@ based on iterating over all attributes.
10551057
*[x for x in typing.Iter[typing.Members[T]]],
10561058
]
10571059

1058-
``UpdateClass`` can then be used to create a class decorator (ala
1059-
`@dataclass`) adds a new `__init__`` method to a class.
1060+
``UpdateClass`` can then be used to create a class decorator (a la
1061+
``@dataclass``) adds a new ``__init__`` method to a class.
10601062

10611063
::
10621064

@@ -1292,8 +1294,7 @@ tricks for building a string do not work for loops and
12921294
conditionals.
12931295

12941296
This could be mitigated by doing one of:
1295-
1. The `"Just store the
1296-
strings" <https://peps.python.org/pep-0649/#just-store-the-strings>`_
1297+
1. The :pep:`"Just store the strings" <649#just-store-the-strings>`_
12971298
option from :pep:`649`, which would allow always extracting
12981299
unevaluated strings.
12991300
2. Adding a ``Format.AST`` mode for

tests/test_dataclass_like.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Field[T: FieldArgs](typing.InitField[T]):
4242

4343
"""
4444
45-
``InitFnType`` generates a ``Member`` for a new `__init__` function
45+
``InitFnType`` generates a ``Member`` for a new ``__init__`` function
4646
based on iterating over all attributes.
4747
4848
``GetDefault`` here is borrowed from our FastAPI-like example above.
@@ -83,8 +83,8 @@ class Field[T: FieldArgs](typing.InitField[T]):
8383

8484
"""
8585
86-
``UpdateClass`` can then be used to create a class decorator (ala
87-
`@dataclass`) adds a new `__init__`` method to a class.
86+
``UpdateClass`` can then be used to create a class decorator (a la
87+
``@dataclass``) adds a new ``__init__`` method to a class.
8888
8989
"""
9090

0 commit comments

Comments
 (0)