You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is likely inefficient compared to the follow which does not need to unpack / repack the tuple.
out=dict(zip(keys, values))
This is essentially an extension of C416 to handle dict comprehensions as well. The version without the dict comprehension should be identical to the original code, just potentially more efficient.
The text was updated successfully, but these errors were encountered:
Skylion007
changed the title
Unnecessary dict comprehension from zip iterable (extension to C416)
Extend to C416 to dict comprehensions with zip
Mar 15, 2023
Description
This is likely inefficient compared to the follow which does not need to unpack / repack the tuple.
This is essentially an extension of C416 to handle dict comprehensions as well. The version without the dict comprehension should be identical to the original code, just potentially more efficient.
The text was updated successfully, but these errors were encountered: