Commit 18f3dca4 authored by Tom Niget's avatar Tom Niget

Fix erroneous tuple parsing

parent 948b53d8
......@@ -60,7 +60,7 @@ class StdlibVisitor(NodeVisitorSeq):
if isinstance(b.slice, ast.Name):
sliceval = [b.slice.id]
elif isinstance(b.slice, ast.Tuple):
sliceval = [n.id for n in b.slice.value.elts]
sliceval = [n.id for n in b.slice.elts]
if isinstance(b.value, ast.Name) and b.value.id == "Generic":
typevars = sliceval
elif isinstance(b.value, ast.Name) and b.value.id == "Protocol":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment