diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2022-03-24 13:34:05 +0300 |
---|---|---|
committer | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2022-03-24 13:34:05 +0300 |
commit | a432bf8c1022d5a4f8227c6bf309c3d2820ef9c6 (patch) | |
tree | 026275bc15b78c97cf4142877814f5c4d98f4b60 /sphinx | |
parent | 59e96bfbc5619f7df9929ee6a8eb3ebbdb94d523 (diff) |
Update PEP links in docs
Diffstat (limited to 'sphinx')
-rw-r--r-- | sphinx/ext/autodoc/__init__.py | 2 | ||||
-rw-r--r-- | sphinx/ext/doctest.py | 2 | ||||
-rw-r--r-- | sphinx/util/__init__.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/ext/autodoc/__init__.py b/sphinx/ext/autodoc/__init__.py index 9bea15866..9c3c623ac 100644 --- a/sphinx/ext/autodoc/__init__.py +++ b/sphinx/ext/autodoc/__init__.py @@ -1661,7 +1661,7 @@ class ClassDocumenter(DocstringSignatureMixin, ModuleLevelDocumenter): # type: if not self.doc_as_attr and self.options.show_inheritance: if inspect.getorigbases(self.object): # A subclass of generic types - # refs: PEP-560 <https://www.python.org/dev/peps/pep-0560/> + # refs: PEP-560 <https://peps.python.org/pep-0560/> bases = list(self.object.__orig_bases__) elif hasattr(self.object, '__bases__') and len(self.object.__bases__): # A normal class diff --git a/sphinx/ext/doctest.py b/sphinx/ext/doctest.py index 0c02547e9..0d414697c 100644 --- a/sphinx/ext/doctest.py +++ b/sphinx/ext/doctest.py @@ -41,7 +41,7 @@ def is_allowed_version(spec: str, version: str) -> bool: """Check `spec` satisfies `version` or not. This obeys PEP-440 specifiers: - https://www.python.org/dev/peps/pep-0440/#version-specifiers + https://peps.python.org/pep-0440/#version-specifiers Some examples: diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py index ee98c29c8..33e6bba28 100644 --- a/sphinx/util/__init__.py +++ b/sphinx/util/__init__.py @@ -422,7 +422,7 @@ def split_full_qualified_name(name: str) -> Tuple[Optional[str], str]: """Split full qualified name to a pair of modname and qualname. A qualname is an abbreviation for "Qualified name" introduced at PEP-3155 - (https://www.python.org/dev/peps/pep-3155/). It is a dotted path name + (https://peps.python.org/pep-3155/). It is a dotted path name from the module top-level. A "full" qualified name means a string containing both module name and |