Fix Field type annoations in gt4py.next #1415
Labels
gt4py.next
Issues concerning the new version with support for non-cartesian grids.
triage: enhancement
New feature or request
Field[[A,B,C], DType]
typing annotations to a syntactically valid form (Field[Dims[A,B,C], DType]
) to avoid many mypy complaints in our code, and also as preparation for using variadic generics from PEP 646.Dims
could be just an alias forTuple
.Dimension
implementation should be changed to be actual classes to avoid mypy errors and even get some meaningful typing errors for free.The text was updated successfully, but these errors were encountered: