aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormryouse2022-06-11 22:15:58 +0000
committermryouse2022-06-11 22:15:58 +0000
commit885bef21990ac0a5bc500f7c8af8a956f457c37b (patch)
tree0e9036711d914f64680c535762df7e2545947e15
parent2dea2a15ff9c734c788beea4b91ebde58672fee4 (diff)
add List as a type
-rw-r--r--structs.py1
1 files changed, 1 insertions, 0 deletions
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) + ")"