summaryrefslogtreecommitdiff
path: root/tests/functional/u/unused/unused_import_everything_disabled.py
blob: 381cd012fd2eb51580c55101036ddb0f7c6e851c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Test that unused-import is not emitted here when everything else is disabled

https://github.com/PyCQA/pylint/issues/3445
https://github.com/PyCQA/pylint/issues/6089
"""
from math import e, pi
from os import environ

for k, v in environ.items():
    print(k, v)


class MyClass:
    """For the bug reported in #6089 it is important to use the same names for the class attributes as in the imports."""

    e = float(e)
    pi = pi