|
1 | 1 | """ |
2 | 2 | Basic script to generate a wheel for a third-party distribution in typeshed. |
3 | 3 |
|
4 | | -This generates a PEP 561 types stub package using METADATA.toml file for a given |
| 4 | +This generates a stub package using METADATA.toml file for a given |
5 | 5 | distribution in typeshed stubs. Such package can be used by type checkers |
6 | 6 | to check code that uses the corresponding runtime Python package. |
7 | 7 |
|
|
39 | 39 | SUFFIX = "-stubs" |
40 | 40 |
|
41 | 41 | PARTIAL_STUBS_DESCRIPTION = """ |
42 | | -This stub package is marked as [partial](https://peps.python.org/pep-0561/#partial-stub-packages). |
| 42 | +This stub package is marked as [partial](https://typing.python.org/en/latest/spec/distributing.html#partial-stub-packages). |
43 | 43 | If you find that annotations are missing, feel free to contribute and help complete them. |
44 | 44 | """.lstrip() |
45 | 45 |
|
|
97 | 97 | DESCRIPTION_INTRO_TEMPLATE = """ |
98 | 98 | ## Typing stubs for {distribution} |
99 | 99 |
|
100 | | -This is a [PEP 561](https://peps.python.org/pep-0561/) type stub package for |
101 | | -the {formatted_distribution} package. It can be used by type checkers |
| 100 | +This is a [type stub package](https://typing.python.org/en/latest/tutorials/external_libraries.html) |
| 101 | +for the {formatted_distribution} package. It can be used by type checkers |
102 | 102 | to check code that uses `{distribution}`. This version of |
103 | 103 | `{stub_distribution}` aims to provide accurate annotations for |
104 | 104 | `{distribution}{typeshed_version_spec}`. |
@@ -240,7 +240,7 @@ def find_stub_files(top: str) -> list[str]: |
240 | 240 | def copy_stubs(base_dir: Path, dst: Path) -> None: |
241 | 241 | """Copy stubs for given distribution to the build directory. |
242 | 242 |
|
243 | | - For packages change name by appending "-stubs" suffix (PEP 561), |
| 243 | + For packages change name by appending "-stubs" suffix (per the typing spec), |
244 | 244 | also convert modules to trivial packages with a single __init__.pyi. |
245 | 245 | """ |
246 | 246 | for entry in base_dir.iterdir(): |
|
0 commit comments