Skip to content

Commit 639877d

Browse files
authored
Change link targets in package descriptions (#181)
Also replace a few references to PEPs in comments and docstrings.
1 parent 7171930 commit 639877d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stub_uploader/build_wheel.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Basic script to generate a wheel for a third-party distribution in typeshed.
33
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
55
distribution in typeshed stubs. Such package can be used by type checkers
66
to check code that uses the corresponding runtime Python package.
77
@@ -39,7 +39,7 @@
3939
SUFFIX = "-stubs"
4040

4141
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).
4343
If you find that annotations are missing, feel free to contribute and help complete them.
4444
""".lstrip()
4545

@@ -97,8 +97,8 @@
9797
DESCRIPTION_INTRO_TEMPLATE = """
9898
## Typing stubs for {distribution}
9999
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
102102
to check code that uses `{distribution}`. This version of
103103
`{stub_distribution}` aims to provide accurate annotations for
104104
`{distribution}{typeshed_version_spec}`.
@@ -240,7 +240,7 @@ def find_stub_files(top: str) -> list[str]:
240240
def copy_stubs(base_dir: Path, dst: Path) -> None:
241241
"""Copy stubs for given distribution to the build directory.
242242
243-
For packages change name by appending "-stubs" suffix (PEP 561),
243+
For packages change name by appending "-stubs" suffix (per the typing spec),
244244
also convert modules to trivial packages with a single __init__.pyi.
245245
"""
246246
for entry in base_dir.iterdir():

0 commit comments

Comments
 (0)