Skip to content

Conversation

@jiasli
Copy link
Member

@jiasli jiasli commented Nov 8, 2021

Description

Part of #20192

Fix linter error R1734:

R1734: Consider using [] instead of list() (use-list-literal)

https://pylint.pycqa.org/en/latest/technical_reference/features.html#imports-checker-messages

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

@jiasli jiasli requested a review from wangzelin007 November 8, 2021 09:21
@jiasli jiasli added this to the Nov 2021 (2021-12-07) milestone Nov 8, 2021
@jiasli jiasli self-assigned this Nov 8, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 8, 2021

Pylint

Copy link
Member

@wangzelin007 wangzelin007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jiasli jiasli merged commit 15c17c0 into Azure:dev Nov 9, 2021
@jiasli jiasli deleted the use-list-literal branch November 9, 2021 07:49
@jiasli jiasli mentioned this pull request Nov 14, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants