summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--astroid/scoped_nodes.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c66a938..b8d318d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,10 @@ Release Date: TBA
Closes PyCQA/pylint#3974
+* Iterate over ``Keywords`` when using ``ClassDef.get_children``
+
+ Closes PyCQA/pylint#3202
+
What's New in astroid 2.5.1?
============================
diff --git a/astroid/scoped_nodes.py b/astroid/scoped_nodes.py
index 4c84c516..1a7c7478 100644
--- a/astroid/scoped_nodes.py
+++ b/astroid/scoped_nodes.py
@@ -1895,7 +1895,7 @@ class ClassDef(mixins.FilterStmtsMixin, LocalsDictNodeNG, node_classes.Statement
# by a raw factories
# a dictionary of class instances attributes
- _astroid_fields = ("decorators", "bases", "body") # name
+ _astroid_fields = ("decorators", "bases", "keywords", "body") # name
decorators = None
"""The decorators that are applied to this class.
@@ -2920,6 +2920,7 @@ class ClassDef(mixins.FilterStmtsMixin, LocalsDictNodeNG, node_classes.Statement
yield self.decorators
yield from self.bases
+ yield from self.keywords
yield from self.body
@decorators_mod.cached