summaryrefslogtreecommitdiff
path: root/pylint/checkers/classes.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2019-03-09 11:22:36 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2019-03-20 09:07:35 +0100
commit5ab140ac3b3dda6f32e0f73aeec09abf015ea30f (patch)
treee0f633c7e63f7e0183c676c4d9e94d7986309b88 /pylint/checkers/classes.py
parenta422e9750843f3b41a6919b9a5fa2c7d54593394 (diff)
downloadpylint-git-5ab140ac3b3dda6f32e0f73aeec09abf015ea30f.tar.gz
Style - Apply isort on all apllicable files
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r--pylint/checkers/classes.py31
1 files changed, 15 insertions, 16 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py
index 543b27ecf..d75107136 100644
--- a/pylint/checkers/classes.py
+++ b/pylint/checkers/classes.py
@@ -32,38 +32,37 @@
from __future__ import generators
import collections
-from itertools import chain, zip_longest
import sys
+from itertools import chain, zip_longest
import astroid
-from astroid.bases import Generator, BUILTINS
-from astroid.exceptions import InconsistentMroError, DuplicateBasesError
-from astroid import decorators
-from astroid import objects
+from astroid import decorators, objects
+from astroid.bases import BUILTINS, Generator
+from astroid.exceptions import DuplicateBasesError, InconsistentMroError
from astroid.scoped_nodes import function_to_method
-from pylint.interfaces import IAstroidChecker
+
from pylint.checkers import BaseChecker
from pylint.checkers.utils import (
PYMETHODS,
SPECIAL_METHODS_PARAMS,
- overrides_a_method,
check_messages,
+ class_is_abstract,
+ decorated_with,
+ decorated_with_property,
+ has_known_bases,
is_attr_private,
is_attr_protected,
- node_frame_class,
is_builtin_object,
- decorated_with_property,
- unimplemented_abstract_methods,
- decorated_with,
- class_is_abstract,
- safe_infer,
- has_known_bases,
- is_iterable,
is_comprehension,
+ is_iterable,
+ node_frame_class,
+ overrides_a_method,
+ safe_infer,
+ unimplemented_abstract_methods,
)
+from pylint.interfaces import IAstroidChecker
from pylint.utils import get_global_option
-
if sys.version_info >= (3, 0):
NEXT_METHOD = "__next__"
else: