Description
Gtscript stencils (and functions) can have optional arguments, e.g. as mentioned in
NOAA-GFDL/NDSL#524 (comment)
However, if we write the same in "new style" syntax, i.e. Field | None instead of Optional[Field], the parser trips and we crash.
This issue is about adding support for the "new style" syntax because we should just support both.
Description
Gtscript stencils (and functions) can have optional arguments, e.g. as mentioned in
NOAA-GFDL/NDSL#524 (comment)
However, if we write the same in "new style" syntax, i.e.
Field | Noneinstead ofOptional[Field], the parser trips and we crash.This issue is about adding support for the "new style" syntax because we should just support both.