Parse (ignore) typing annotations for define and default

This commit is contained in:
Gouvernathor
2023-04-18 19:16:12 +02:00
parent fb803ea05c
commit e8e73ae2c2
+6
View File
@@ -963,6 +963,9 @@ def define_statement(l, loc):
elif l.match(r'\|='):
operator = "|="
else:
if l.match(":"):
l.match(r"[^=\n]*")
l.require('=')
operator = "="
@@ -999,6 +1002,9 @@ def default_statement(l, loc):
store = store + "." + name
name = l.require(l.word)
if l.match(":"):
l.match(r"[^=\n]*")
l.require('=')
expr = l.rest()