PEP 692: Update Reference Implementation section (#2779)

This commit is contained in:
Franek Magiera 2022-08-31 06:03:47 +02:00 committed by GitHub
parent 97e3dbde98
commit 5432a30b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 7 deletions

View File

@ -531,12 +531,11 @@ the `mypy documentation <https://mypy.readthedocs.io/>`_ and the
Reference Implementation
========================
There is a proof-of-concept implementation of typing ``**kwargs`` using
``TypedDict`` as a `pull request to mypy <mypyPull10576_>`__
and `to mypy_extensions <mypyExtensionsPull22_>`__.
The implementation uses ``Expand`` instead of ``Unpack``.
The `mypy type checker <https://github.com/python/mypy>`_ already
`supports <https://github.com/python/mypy/pull/13471>`_ more precise
``**kwargs`` typing using ``Unpack``.
The `Pyright type checker <https://github.com/microsoft/pyright>`_
`Pyright type checker <https://github.com/microsoft/pyright>`_ also
`provides provisional support <pyrightProvisionalImplementation_>`__
for `this feature <pyrightIssue3002_>`__.
@ -582,8 +581,6 @@ References
.. _httpxIssue1384: https://github.com/encode/httpx/issues/1384
.. _mypyIssue4441: https://github.com/python/mypy/issues/4441
.. _mypyPull10576: https://github.com/python/mypy/pull/10576
.. _mypyExtensionsPull22: https://github.com/python/mypy_extensions/pull/22/files
.. _pyrightIssue3002: https://github.com/microsoft/pyright/issues/3002
.. _pyrightProvisionalImplementation: https://github.com/microsoft/pyright/commit/5bee749eb171979e3f526cd8e5bf66b00593378a
.. _cpythonGrammarChangePoc: https://github.com/python/cpython/compare/main...franekmagiera:annotate-kwargs