Skip to content

Commit 2a6ed74

Browse files
committed
Check if keywords is not None before iterating over it
1 parent a5eaaee commit 2a6ed74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

astroid/scoped_nodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2920,7 +2920,8 @@ def get_children(self):
29202920
yield self.decorators
29212921

29222922
yield from self.bases
2923-
yield from self.keywords
2923+
if self.keywords is not None:
2924+
yield from self.keywords
29242925
yield from self.body
29252926

29262927
@decorators_mod.cached

0 commit comments

Comments
 (0)