summaryrefslogtreecommitdiff
path: root/astroid/tree/scoped_nodes.py
diff options
context:
space:
mode:
authorDerek Gustafson <degustaf@gmail.com>2017-01-22 07:31:15 -0500
committerClaudiu Popa <pcmanticore@gmail.com>2017-01-22 14:36:59 +0200
commit72bcccc19ea6a4896473dad9d22f61e7893a1a62 (patch)
tree8e0e9d7a224a9f2c878d2944bf8e40e850c04e69 /astroid/tree/scoped_nodes.py
parentd99980253e1c2242b23572d165dd3a9ff990527c (diff)
downloadastroid-git-72bcccc19ea6a4896473dad9d22f61e7893a1a62.tar.gz
Make ClassDefs support keyword arguments. (#384)
Diffstat (limited to 'astroid/tree/scoped_nodes.py')
-rw-r--r--astroid/tree/scoped_nodes.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/astroid/tree/scoped_nodes.py b/astroid/tree/scoped_nodes.py
index e9c6a26d..257b13d9 100644
--- a/astroid/tree/scoped_nodes.py
+++ b/astroid/tree/scoped_nodes.py
@@ -1224,7 +1224,8 @@ class ClassDef(QualifiedNameMixin, base.FilterStmtsMixin,
_newstyle = None
def __init__(self, name=None, doc=None, lineno=None,
- col_offset=None, parent=None):
+ col_offset=None, parent=None, keywords=None):
+ self.keywords = keywords
self.bases = []
self.body = []
self.name = name
@@ -1233,7 +1234,9 @@ class ClassDef(QualifiedNameMixin, base.FilterStmtsMixin,
self.external_attrs = collections.defaultdict(list)
super(ClassDef, self).__init__(lineno, col_offset, parent)
- def postinit(self, bases, body, decorators, newstyle=None, metaclass=None):
+ # pylint: disable=redefined-outer-name
+ def postinit(self, bases, body, decorators, newstyle=None, metaclass=None, keywords=None):
+ self.keywords = keywords
self.bases = bases
self.body = body
self.decorators = decorators