diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-10-09 09:43:38 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-10-09 09:54:52 +0200 |
commit | 1e05190ef09f6bdb3d4ce8573e2548853df30cdf (patch) | |
tree | ed6017f425c8c04551411ee4aa6e6c89e73ace96 /tests/functional/c | |
parent | 3f86141e608afad6b9fb69fcc13b1cf5a8d7eb9f (diff) | |
download | pylint-git-1e05190ef09f6bdb3d4ce8573e2548853df30cdf.tar.gz |
``import-outside-toplevel`` is emitted for ``ImportFrom`` nodes as well.
Close #3175
Diffstat (limited to 'tests/functional/c')
-rw-r--r-- | tests/functional/c/consider_using_enumerate.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/functional/c/consider_using_enumerate.py b/tests/functional/c/consider_using_enumerate.py index 758375c37..cff00aeec 100644 --- a/tests/functional/c/consider_using_enumerate.py +++ b/tests/functional/c/consider_using_enumerate.py @@ -49,6 +49,7 @@ def good(): for index in range(len(iterable)):
yield other_obj[index]
+ # pylint: disable=import-outside-toplevel
from unknown import unknown
for index in range(unknown(iterable)):
yield iterable[index]
|