Skip to content

Commit 248b47c

Browse files
committed
Add some types to ExecutorBase attributes
1 parent 7b489db commit 248b47c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

loopy/target/execution.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,18 @@
4747
from pytools.persistent_dict import WriteOncePersistentDict
4848

4949
from loopy.kernel import KernelState, LoopKernel
50-
from loopy.kernel.data import ArrayArg, _ArraySeparationInfo, auto
5150
from loopy.tools import LoopyKeyBuilder, caches
5251
from loopy.types import LoopyType, NumpyType
53-
from loopy.typing import Expression, integer_expr_or_err
52+
from loopy.typing import auto, integer_expr_or_err
5453
from loopy.version import DATA_MODEL_VERSION
5554

5655

5756
if TYPE_CHECKING:
58-
from collections.abc import Callable, Mapping, Sequence
57+
from collections.abc import Callable, Mapping, Sequence, Set
5958

59+
from pymbolic.typing import Expression
60+
61+
from loopy.kernel.data import ArrayArg, _ArraySeparationInfo
6062
from loopy.schedule.tools import KernelArgInfo
6163
from loopy.translation_unit import TranslationUnit
6264

@@ -766,7 +768,13 @@ class ExecutorBase:
766768
767769
.. automethod:: __call__
768770
"""
771+
t_unit: TranslationUnit
769772
packing_controller: SeparateArrayPackingController | None
773+
entrypoint: str
774+
input_array_names: Set[str]
775+
has_runtime_typed_args: bool
776+
separated_entry_knl: LoopKernel
777+
sep_info: dict[str, _ArraySeparationInfo]
770778

771779
def __init__(self, t_unit: TranslationUnit, entrypoint: str):
772780
self.t_unit = t_unit

0 commit comments

Comments
 (0)