Skip to content

Commit

Permalink
Use improved PEP links from python#2251
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfstr committed Jan 20, 2022
1 parent b1ea366 commit 3897926
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pep-0655.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Abstract

:pep:`589` defines syntax
for declaring a TypedDict with all required keys and syntax for defining
a TypedDict with `all potentially-missing
keys <https://www.python.org/dev/peps/pep-0589/#totality>`__ however it
a TypedDict with :pep:`all potentially-missing keys <589#totality>` however it
does not provide any syntax to declare some keys as required and others
as potentially-missing. This PEP introduces two new syntaxes:
``Required[]`` which can be used on individual items of a
Expand Down Expand Up @@ -130,7 +129,7 @@ same time:
year: NotRequired[Required[int]] # ERROR


The `alternative syntax <https://www.python.org/dev/peps/pep-0589/#alternative-syntax>`__
The :pep:`alternative syntax <589#alternative-syntax>`
for TypedDict also supports
``Required[]`` and ``NotRequired[]``:

Expand Down

0 comments on commit 3897926

Please sign in to comment.