From 2ffbfc23f0af5c95088f66284afac0d4c5a866fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D1=80=D0=B8=D1=81=20=D0=92=D0=B5=D1=80=D1=85?= =?UTF-8?q?=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Date: Wed, 14 Oct 2020 12:11:31 -0400 Subject: [PATCH] restore dict() instead of dict literal --- Doc/library/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 690fe3bfd7b..29ee9b0b4bb 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1698,7 +1698,7 @@ are always available. They are listed here in alphabetical order. >>> class X: ... a = 1 ... - >>> X = type('X', (), {'a': 1}) + >>> X = type('X', (), dict(a=1)) See also :ref:`bltin-type-objects`.