use-dict-literal / R1735#
Message emitted:
Consider using {} instead of dict()
Description:
Emitted when using dict() to create an empty dictionary instead of the literal {}. The literal is faster as it avoids an additional function call.
Problematic code:
empty_dict = dict() # [use-dict-literal]
Correct code:
empty_dict = {}
Created by the refactoring checker.