summaryrefslogtreecommitdiff
path: root/pylint/checkers/imports.py
diff options
context:
space:
mode:
authorWill Shanks <wsha@posteo.net>2021-07-09 16:31:47 -0400
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-07-10 20:22:27 +0200
commit821e4d155ecfc416aa546df56ef79e839cdd5897 (patch)
treef0e05b742de793246e03dc3f02ed665f2db35a0f /pylint/checkers/imports.py
parent8d05dcf5abe666013438defa224e070fdfb576ae (diff)
downloadpylint-git-821e4d155ecfc416aa546df56ef79e839cdd5897.tar.gz
Clarify consider-using-from-import documentation
consider-using-from-import only handles submodules
Diffstat (limited to 'pylint/checkers/imports.py')
-rw-r--r--pylint/checkers/imports.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py
index e5e184421..090b24057 100644
--- a/pylint/checkers/imports.py
+++ b/pylint/checkers/imports.py
@@ -223,10 +223,10 @@ MSGS = {
"R0402": (
"Use 'from %s import %s' instead",
"consider-using-from-import",
- "Emitted when a submodule/member of a package is imported and "
+ "Emitted when a submodule of a package is imported and "
"aliased with the same name. "
- "E.g., instead of ``import pandas.DataFrame as DataFrame`` use "
- "``from pandas import DataFrame``",
+ "E.g., instead of ``import concurrent.futures as futures`` use "
+ "``from concurrent import futures``",
),
"W0401": (
"Wildcard import %s",