Skip to content

Commit 08f7e0e

Browse files
PEP 612: Clean up code examples, link to CPython implementation (#1745)
1 parent 831e725 commit 08f7e0e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pep-0612.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ inheriting from ``Generic[P]`` makes a class generic on
216216
.. code-block::
217217
218218
T = TypeVar("T")
219-
S = TypeVar("S")
220219
P_2 = ParamSpec("P_2")
221220
222221
class X(Generic[T, P]):
@@ -300,7 +299,7 @@ evaluated in the same way.
300299

301300
.. code-block::
302301
303-
U = TypeVar("T")
302+
U = TypeVar("U")
304303
305304
class Y(Generic[U, P]):
306305
f: Callable[P, str]
@@ -577,7 +576,9 @@ Reference Implementation
577576

578577
The `Pyre <https://pyre-check.org/>`_ type checker supports all of the behavior
579578
described above. A reference implementation of the runtime components needed
580-
for those uses is provided in the ``pyre_extensions`` module.
579+
for those uses is provided in the ``pyre_extensions`` module. A reference
580+
implementation for CPython can be found
581+
`here <https://github.com/python/cpython/pull/23702>`_.
581582

582583
Rejected Alternatives
583584
---------------------

0 commit comments

Comments
 (0)