From 4a73cff68e8f946195360bc84465ab925c4dab56 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Mon, 24 Nov 2025 16:31:48 +0100 Subject: [PATCH] Remove `not_equal` from schema --- peps/pep-0804.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/peps/pep-0804.rst b/peps/pep-0804.rst index 2f2e7e133bd..2f323203a8d 100644 --- a/peps/pep-0804.rst +++ b/peps/pep-0804.rst @@ -658,7 +658,7 @@ Each entry in this list is defined as a dictionary with these fields: per command. - True * - ``specifier_syntax`` - - ``dict[Literal['name_only', 'exact_version', 'version_ranges'], None | list[str] | dict[Literal['and', 'equal', 'greater_than', 'greater_than_equal', 'less_than', 'less_than_equal', 'not_equal', 'syntax'], None | str | list[str]]`` + - ``dict[Literal['name_only', 'exact_version', 'version_ranges'], None | list[str] | dict[Literal['and', 'equal', 'greater_than', 'greater_than_equal', 'less_than', 'less_than_equal', 'syntax'], None | str | list[str]]`` - Mapping of allowed PEP440 version specifiers to the syntax used in this package manager. Three top-level keys are expected and required: @@ -681,7 +681,7 @@ Each entry in this list is defined as a dictionary with these fields: ``and``). They MAY also include the ``{name}`` placeholder. - the keys ``equal``, ``greater_than``, ``greater_than_equal``, - ``less_than``, ``less_than_equal``, and ``not_equal`` take a string + ``less_than``, and ``less_than_equal`` take a string if the operator is supported, ``None`` otherwise. In the former case, the value MUST include the ``{version}`` placeholder, and MAY include ``{name}``. @@ -832,7 +832,6 @@ for brevity, could look like: "greater_than_equal": ">={version}", "less_than": "<{version}", "less_than_equal": "<={version}", - "not_equal": "!={version}", "syntax": [ "{name}{ranges}" ]