PEP 678: minor grammar fix (#2468)

This commit is contained in:
Irit Katriel 2022-03-25 16:18:15 +00:00 committed by GitHub
parent f3aad219e9
commit 233b005cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -157,8 +157,8 @@ its notes (if there are any) appear immediately after the exception message, in
in which they were added, with each note starting on a new line.
If ``__notes__`` has been created, ``BaseExceptionGroup.subgroup`` and
``BaseExceptionGroup.split`` create new lists on each new instance containing
the same contents as the original exception group.
``BaseExceptionGroup.split`` create a new list for each new instance, containing
the same contents as the original exception group's ``__notes__``.
We *do not* specify the expected behaviour when users have assigned a non-list
value to ``__notes__``, or a list which contains non-string elements.