diff options
author | Will Shanks <wsha@posteo.net> | 2021-07-09 16:31:47 -0400 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-07-10 20:22:27 +0200 |
commit | 821e4d155ecfc416aa546df56ef79e839cdd5897 (patch) | |
tree | f0e05b742de793246e03dc3f02ed665f2db35a0f /pylint/checkers/imports.py | |
parent | 8d05dcf5abe666013438defa224e070fdfb576ae (diff) | |
download | pylint-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.py | 6 |
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", |