Skip to content

Commit 55cd20a

Browse files
alexfiklinducer
authored andcommitted
feat(typing): allow expressions as predicates in instructions
1 parent 92b7a72 commit 55cd20a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

loopy/kernel/instruction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def __init__(self,
304304
within_inames_is_final: bool | None,
305305
within_inames: frozenset[str] | None,
306306
priority: int | None,
307-
predicates: frozenset[str] | None,
307+
predicates: frozenset[str] | frozenset[Expression] | None,
308308
tags: frozenset[Tag] | None,
309309
*,
310310
depends_on: frozenset[str] | str | None = None,
@@ -946,7 +946,7 @@ def __init__(self,
946946
within_inames_is_final: bool | None = None,
947947
within_inames: frozenset[str] | None = None,
948948
priority: int | None = None,
949-
predicates: frozenset[str] | None = None,
949+
predicates: frozenset[str] | frozenset[Expression] | None = None,
950950
tags: frozenset[Tag] | None = None,
951951
temp_var_type:
952952
type[_not_provided]

0 commit comments

Comments
 (0)