restore dict() instead of dict literal

This commit is contained in:
Борис Верховский 2020-10-14 12:11:31 -04:00 committed by GitHub
parent 80a6ecf84d
commit 2ffbfc23f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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`.