From 6410ef123295e81b92aa03151ca199775c7b295e Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sat, 8 Jun 2024 16:04:16 +0100 Subject: [PATCH] Address review --- .../pep_processor/parsing/pep_banner_directive.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pep_sphinx_extensions/pep_processor/parsing/pep_banner_directive.py b/pep_sphinx_extensions/pep_processor/parsing/pep_banner_directive.py index 34ef73290d0..00f7b789fec 100644 --- a/pep_sphinx_extensions/pep_processor/parsing/pep_banner_directive.py +++ b/pep_sphinx_extensions/pep_processor/parsing/pep_banner_directive.py @@ -108,17 +108,12 @@ class CanonicalTypingSpecBanner(PEPBanner): """Insert a specialized admonition for the typing specification.""" admonition_pre_template = ( - "This PEP is a historical document. " - "The up-to-date, canonical specs, {link_content}, are maintained at " - f"the `typing specs site <{TYPING_SPEC_BASE_URL}>`__ and the CPython " - "documentation." - ) - admonition_pre_text = ( - "This PEP is a historical document. " - "The up-to-date, canonical specs, {link_content}, are maintained at " - f"the `typing specs site <{TYPING_SPEC_BASE_URL}>`__ and the CPython " - "documentation." + "This PEP is a historical document: see {link_content} for up-to-date " + "specs and documentation. Canonical typing specs are maintained at " + f"the `typing specs site <{TYPING_SPEC_BASE_URL}>`__; " + "runtime typing behaviour is described in the CPython documentation." ) + admonition_pre_text = admonition_pre_template admonition_post_text = ( "See the `typing specification update process " "`__ "