Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
tehrengruber committed Jan 31, 2025
1 parent 9072778 commit 6c4ad12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/gt4py/next/iterator/type_system/type_synthesizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def can_deref(it: it_ts.IteratorType | ts.DeferredType) -> ts.ScalarType:


@_register_builtin_type_synthesizer
def if_(pred: ts.ScalarType, true_branch: ts.DataType, false_branch: ts.DataType) -> ts.DataType:
def if_(pred: ts.ScalarType | ts.DeferredType, true_branch: ts.DataType, false_branch: ts.DataType) -> ts.DataType:
if isinstance(true_branch, ts.TupleType) and isinstance(false_branch, ts.TupleType):
return tree_map(
collection_type=ts.TupleType,
Expand Down
7 changes: 3 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c4ad12

Please sign in to comment.