We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d87b4e6 commit 3f121bfCopy full SHA for 3f121bf
1 file changed
src/ast/tree.py
@@ -1,7 +1,7 @@
1
#!/usr/bin/python
2
# -*- coding: utf-8 -*-
3
4
-import collections
+import collections.abc
5
6
from typing import Iterable
7
from typing import List
@@ -39,7 +39,7 @@ def children(self):
39
40
@children.setter
41
def children(self, value: Iterable):
42
- assert isinstance(value, collections.Iterable)
+ assert isinstance(value, collections.abc.Iterable)
43
while len(self.children):
44
self.children.pop()
45
@@ -129,7 +129,7 @@ def __len__(self):
129
130
def __add__(self, other):
131
if not isinstance(other, ChildrenList):
132
- assert isinstance(other, collections.Container)
+ assert isinstance(other, collections.abc.Container)
133
134
result = ChildrenList(self.owner)
135
for x in self:
0 commit comments