Accept PEP 561 and link to it from the relevant section in PEP 484

This commit is contained in:
Guido van Rossum 2018-06-27 16:19:05 -07:00
parent 5c7c89ca54
commit bb9ca321dc
2 changed files with 9 additions and 1 deletions

View File

@ -1856,6 +1856,14 @@ Stub file package authors might use the following snippet in ``setup.py``::
],
...
(*UPDATE:* As of June 2018 the recommended way to distribute type
hints for third-party packages has changed -- in addition to typeshed
(see the next section) there is now a standard for distributing type
hints, PEP 561. It supports separately installable packages containing
stubs, stub files included in the same distribution as the executable
code of a package, and inline type hints, the latter two options
enabled by including a file named ``py.typed`` in the package.)
The Typeshed Repo
-----------------

View File

@ -1,7 +1,7 @@
PEP: 561
Title: Distributing and Packaging Type Information
Author: Ethan Smith <ethan@ethanhs.me>
Status: Draft
Status: Acepted
Type: Standards Track
Content-Type: text/x-rst
Created: 09-Sep-2017