Skip to content
Snippets Groups Projects
Commit 8dc8808f authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

get_access_info typing fix: vec_info may be None

parent a46bd533
No related branches found
No related tags found
No related merge requests found
...@@ -1217,10 +1217,11 @@ def _apply_offset(sub: Expression, ary: ArrayBase) -> Expression: ...@@ -1217,10 +1217,11 @@ def _apply_offset(sub: Expression, ary: ArrayBase) -> Expression:
def get_access_info(kernel: LoopKernel, def get_access_info(kernel: LoopKernel,
ary: ArrayArg | TemporaryVariable, ary: ArrayArg | TemporaryVariable,
index: Expression | tuple[Expression, ...], index: Expression | tuple[Expression, ...],
eval_expr: Callable[[Expression], int], eval_expr: Callable[[Expression], int],
vectorization_info: VectorizationInfo) -> AccessInfo: vectorization_info: VectorizationInfo | None
) -> AccessInfo:
""" """
:arg ary: an object of type :class:`ArrayBase` :arg ary: an object of type :class:`ArrayBase`
:arg index: a tuple of indices representing a subscript into ary :arg index: a tuple of indices representing a subscript into ary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment