From 885bef21990ac0a5bc500f7c8af8a956f457c37b Mon Sep 17 00:00:00 2001 From: mryouse Date: Sat, 11 Jun 2022 22:15:58 +0000 Subject: add List as a type --- structs.py | 1 + 1 file changed, 1 insertion(+) (limited to 'structs.py') diff --git a/structs.py b/structs.py index d6b0b67..6dea1d5 100644 --- a/structs.py +++ b/structs.py @@ -150,6 +150,7 @@ class List(T.List): def __init__(self, args, data=False): self.args = args self.data = data + self.type_ = T.List def __str__(self): return "(" + " ".join(f"{arg}" for arg in self.args) + ")" -- cgit v1.2.3