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.

Correct code:

empty_dict = {}

Problematic code:

empty_dict = dict()  # [use-dict-literal]

Created by the refactoring checker.