Skip to content

Commit

Permalink
Remove custom repr in the example for the sentinel decorator suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
taleinat committed Jan 27, 2025
1 parent 3535503 commit 0ab2f2f
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 @@ -348,7 +348,7 @@ A sentinel class decorator

The suggested idiom is::

@sentinel(repr='<NotGiven>')
@sentinel
class NotGivenType: pass
NotGiven = NotGivenType()

Expand Down

0 comments on commit 0ab2f2f

Please sign in to comment.