From 532efdb824724ec7bafb6105a445a9702e0dbee5 Mon Sep 17 00:00:00 2001 From: Michael Scott Asato Cuthbert Date: Tue, 10 Oct 2023 23:37:22 -1000 Subject: [PATCH] PEP 661: Standardize module name (#2795) standardize mod name The PEP says that the module name is "sentinels" (plural) but the example imports Sentinel from the "sentinel" (singular) module. Not absolutely sure which one is intended but recent standards (secrets, dataclasses) have used the plural. CLA for Python signed, in case that's needed. Co-authored-by: Hugo van Kemenade --- peps/pep-0661.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0661.rst b/peps/pep-0661.rst index e999168ac33..4b6fd54be08 100644 --- a/peps/pep-0661.rst +++ b/peps/pep-0661.rst @@ -145,7 +145,7 @@ Its initializer will accept a single required argument, the name of the sentinel object, and two optional arguments: the repr of the object, and the name of its module:: - >>> from sentinel import Sentinel + >>> from sentinels import Sentinel >>> NotGiven = Sentinel('NotGiven') >>> NotGiven