diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-02-12 12:39:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 12:39:21 +0100 |
commit | 81ed650d4655f65231d9caa0056dc92b0fcc257d (patch) | |
tree | d60890107d1304a9e8099a4d97e729b26d7b8ff7 /pylint | |
parent | a0b28f9019fabddd8ef428be75659082377abb4c (diff) | |
download | pylint-git-81ed650d4655f65231d9caa0056dc92b0fcc257d.tar.gz |
[typing] Use __future__ annotations where possible (#8264)
Diffstat (limited to 'pylint')
-rw-r--r-- | pylint/checkers/classes/class_checker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/classes/class_checker.py b/pylint/checkers/classes/class_checker.py index cf2fc39e2..e66e543f2 100644 --- a/pylint/checkers/classes/class_checker.py +++ b/pylint/checkers/classes/class_checker.py @@ -1161,7 +1161,7 @@ a metaclass class method.", self._check_property_with_parameters(node) # 'is_method()' is called and makes sure that this is a 'nodes.ClassDef' - klass = node.parent.frame(future=True) # type: nodes.ClassDef + klass: nodes.ClassDef = node.parent.frame(future=True) # check first argument is self if this is actually a method self._check_first_arg_for_type(node, klass.type == "metaclass") if node.name == "__init__": |