Skip to content

Conversation

@jiasli
Copy link
Member

@jiasli jiasli commented Nov 8, 2021

Description

Part of #20192

Fix linter error R0402:

R0402: Use 'from azure.cli.core import telemetry' instead (consider-using-from-import)

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

consider-using-from-import (R0402)
Use 'from %s import %s' instead Emitted when a submodule of a package is imported and aliased with the same name. E.g., instead of import concurrent.futures as futures use from concurrent import futures

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 8, 2021

Pylint

@yonzhan yonzhan added this to the Nov 2021 (2021-12-07) milestone Nov 8, 2021
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 110f7b4 into Azure:dev Nov 11, 2021
@jiasli jiasli deleted the consider-using-from-import branch November 11, 2021 07:17
@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.

6 participants