Commit 11b4ac04 authored by Tom Niget's avatar Tom Niget

Fix erroneous tuple parsing

parent 26b46351
...@@ -60,7 +60,7 @@ class StdlibVisitor(NodeVisitorSeq): ...@@ -60,7 +60,7 @@ class StdlibVisitor(NodeVisitorSeq):
if isinstance(b.slice, ast.Name): if isinstance(b.slice, ast.Name):
sliceval = [b.slice.id] sliceval = [b.slice.id]
elif isinstance(b.slice, ast.Tuple): 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": if isinstance(b.value, ast.Name) and b.value.id == "Generic":
typevars = sliceval typevars = sliceval
elif isinstance(b.value, ast.Name) and b.value.id == "Protocol": 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