Skip to content

Commit

Permalink
Merge branch 'docs_type_update' of https://github.com/nfarabullini/gt4py
Browse files Browse the repository at this point in the history
 into docs_type_update
  • Loading branch information
nfarabullini committed Mar 13, 2024
2 parents 7157d61 + 81bb432 commit bca3ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gt4py/next/embedded/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _tuple_at(
) -> core_defs.Scalar | tuple[core_defs.ScalarT | tuple, ...]:
@utils.tree_map
def impl(field: common.Field | core_defs.Scalar) -> core_defs.Scalar:
res = field[pos] if common.is_field(field) else field
res = field[pos].as_scalar() if common.is_field(field) else field
assert core_defs.is_scalar_type(res)
return res

Expand Down

0 comments on commit bca3ea4

Please sign in to comment.