Skip to content

Commit

Permalink
typing: fix issues in _column_axis
Browse files Browse the repository at this point in the history
  • Loading branch information
DropD committed Mar 13, 2024
1 parent 57cb2ed commit 2cff020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gt4py/next/ffront/past_to_itir.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ class Meta:
model = PastToItir


def _column_axis(all_closure_vars: dict[str, Any]) -> common.Dimension:
def _column_axis(all_closure_vars: dict[str, Any]) -> Optional[common.Dimension]:
# construct mapping from column axis to scan operators defined on
# that dimension. only one column axis is allowed, but we can use
# this mapping to provide good error messages.
scanops_per_axis: dict[common.Dimension, str] = {}
scanops_per_axis: dict[common.Dimension, list[str]] = {}
for name, gt_callable in transform_utils._filter_closure_vars_by_type(
all_closure_vars, gtcallable.GTCallable
).items():
Expand Down

0 comments on commit 2cff020

Please sign in to comment.