Skip to content

cartesian: parser gets tripped by Field | None #2761

Description

@romanc

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gt4py.cartesianIssues concerning the current version with support only for cartesian grids.module: frontendFrontend subpackagepriority: lowLow priority tasktriage: bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions