Skip to content

Commit 7199da2

Browse files
committed
Fix signature of _normalize_pt_expr after pytato typing made precise
1 parent 37709ac commit 7199da2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

arraycontext/impl/pytato/utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
from typing import TYPE_CHECKING, Any, Dict, Mapping, Optional, Set, Tuple
2727

2828
from pytato.array import (
29-
Array, Axis as PtAxis, DataWrapper, DictOfNamedArrays, Placeholder, SizeParam,
30-
make_placeholder)
29+
AbstractResultWithNamedArrays, Array, Axis as PtAxis, DataWrapper,
30+
DictOfNamedArrays, Placeholder, SizeParam, make_placeholder)
3131
from pytato.target.loopy import LoopyPyOpenCLTarget
3232
from pytato.transform import CopyMapper
3333
from pytools import UniqueNameGenerator, memoize_method
@@ -78,8 +78,9 @@ def map_placeholder(self, expr: Placeholder) -> Array:
7878
" DatawrapperToBoundPlaceholderMapper.")
7979

8080

81-
def _normalize_pt_expr(expr: DictOfNamedArrays) -> Tuple[DictOfNamedArrays,
82-
Mapping[str, Any]]:
81+
def _normalize_pt_expr(
82+
expr: DictOfNamedArrays
83+
) -> Tuple[AbstractResultWithNamedArrays, Mapping[str, Any]]:
8384
"""
8485
Returns ``(normalized_expr, bound_arguments)``. *normalized_expr* is a
8586
normalized form of *expr*, with all instances of

0 commit comments

Comments
 (0)