Skip to content

Commit

Permalink
PEP 661: Standardize module name (#2795)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mscuthbert and hugovk authored Oct 11, 2023
1 parent e38ee92 commit 532efdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peps/pep-0661.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
<NotGiven>
Expand Down

0 comments on commit 532efdb

Please sign in to comment.