Removed unnecessary list() call in ModelBase.__new__().

Unnecessary since 58ad030d05.
This commit is contained in:
SergBobrovsky 2020-06-10 13:10:36 +03:00 committed by GitHub
parent 037a624120
commit 9bfa6a35f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class ModelBase(type):
# method to type.__new__() so that they're properly initialized
# (i.e. __set_name__()).
contributable_attrs = {}
for obj_name, obj in list(attrs.items()):
for obj_name, obj in attrs.items():
if _has_contribute_to_class(obj):
contributable_attrs[obj_name] = obj
else: