diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-09-10 22:53:36 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-09-10 23:23:11 +0200 |
commit | 74d5bcb352141bc742488e74d1b37c1cb381a7ce (patch) | |
tree | fb0491d8c46eb85b8557e1efc2deee66b6173ecb /pylint/checkers/classes.py | |
parent | 9ed9065e19dfcccecab04eba71bf557e91f2379c (diff) | |
download | pylint-git-74d5bcb352141bc742488e74d1b37c1cb381a7ce.tar.gz |
Update formatting following black and isort update
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r-- | pylint/checkers/classes.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index df9c8e6aa..686bf278f 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -362,7 +362,7 @@ def _has_data_descriptor(cls, attr): def _called_in_methods(func, klass, methods): - """ Check if the func was called in any of the given methods, + """Check if the func was called in any of the given methods, belonging to the *klass*. Returns True if so, False otherwise. """ if not isinstance(func, astroid.FunctionDef): @@ -785,8 +785,7 @@ a metaclass class method.", "duplicate-bases", ) def visit_classdef(self, node): - """init visit variable _accessed - """ + """init visit variable _accessed""" self._check_bases_classes(node) # if not an exception or a metaclass if node.type == "class" and has_known_bases(node): @@ -1265,7 +1264,7 @@ a metaclass class method.", self._check_in_slots(node) def _check_in_slots(self, node): - """ Check that the given AssignAttr node + """Check that the given AssignAttr node is defined in the class slots. """ inferred = safe_infer(node.expr) @@ -1681,8 +1680,7 @@ a metaclass class method.", self.add_message("super-init-not-called", args=klass.name, node=node) def _check_signature(self, method1, refmethod, class_type, cls): - """check that the signature of the two given methods match - """ + """check that the signature of the two given methods match""" if not ( isinstance(method1, astroid.FunctionDef) and isinstance(refmethod, astroid.FunctionDef) |