use-list-literal / R1734#

Message emitted:

Consider using [] instead of list()

Description:

Emitted when using list() to create an empty list instead of the literal []. The literal is faster as it avoids an additional function call.

Correct code:

empty_list = []

Problematic code:

empty_list = list()  # [use-list-literal]

Created by the refactoring checker.