Parse (ignore) typing annotations for define and default
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user