From 818bd7e848936faf11adffe3309d1efb5baf1b86 Mon Sep 17 00:00:00 2001 From: Andre Delfino Date: Mon, 7 Jun 2021 20:24:15 -0300 Subject: [PATCH] Fix reference implementation (#1981) --- pep-0661.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0661.rst b/pep-0661.rst index eef81214e..7136827ec 100644 --- a/pep-0661.rst +++ b/pep-0661.rst @@ -148,7 +148,7 @@ The reference implementation is found in a dedicated GitHub repo globals()[class_name] = cls sentinel = cls() - cls.__new__ lambda cls: sentinel + cls.__new__ = lambda cls: sentinel return sentinel