From 0f444ba3a786d6baca41acb4a9e81ef7ec26c1c9 Mon Sep 17 00:00:00 2001 From: Herrtian <70463940+Herrtian@users.noreply.github.com> Date: Sun, 10 May 2026 19:16:22 +0200 Subject: [PATCH 1/2] Document whitespace in quoted dependency specifiers --- source/specifications/dependency-specifiers.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/specifications/dependency-specifiers.rst b/source/specifications/dependency-specifiers.rst index 99886563cc..fb7836bc95 100644 --- a/source/specifications/dependency-specifiers.rst +++ b/source/specifications/dependency-specifiers.rst @@ -128,6 +128,10 @@ Whitespace Non line-breaking whitespace is mostly optional with no semantic meaning. The sole exception is detecting the end of a URL requirement. +When a dependency specifier is written as a quoted string, authors may keep +optional whitespace for readability, such as around version specifiers and +version clauses. + .. _dependency-specifiers-names: Names From d9e7e6231e26ea505b344f43b311a1ceb1477d8e Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Fri, 4 Dec 2026 12:14:41 +0200 Subject: [PATCH 2/2] Apply batched suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Éric Co-authored-by: Ralf Gommers --- source/specifications/dependency-specifiers.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/specifications/dependency-specifiers.rst b/source/specifications/dependency-specifiers.rst index fb7836bc95..093e9dc184 100644 --- a/source/specifications/dependency-specifiers.rst +++ b/source/specifications/dependency-specifiers.rst @@ -128,9 +128,10 @@ Whitespace Non line-breaking whitespace is mostly optional with no semantic meaning. The sole exception is detecting the end of a URL requirement. -When a dependency specifier is written as a quoted string, authors may keep -optional whitespace for readability, such as around version specifiers and -version clauses. +For readability, authors can retain the optional whitespace permitted by the +grammar, including around version comparison operators and between version +clauses. + .. _dependency-specifiers-names: