Skip to content

Commit c860947

Browse files
Copilotinducer
andauthored
Relax tags parameter type in duplicate_inames to accept string tags (#997)
* relax tags type in duplicate_inames to accept string tags Agent-Logs-Url: https://github.com/inducer/loopy/sessions/732b5c22-87ba-42a6-bf05-72500015e63a Co-authored-by: inducer <352067+inducer@users.noreply.github.com> * Fix formatting --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: inducer <352067+inducer@users.noreply.github.com> Co-authored-by: Andreas Kloeckner <inform@tiker.net>
1 parent 47c8999 commit c860947

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

loopy/transform/iname.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -961,12 +961,14 @@ def map_instruction(self,
961961

962962

963963
@for_each_kernel
964-
def duplicate_inames(kernel: LoopKernel,
965-
inames: ToInameStrSetConvertible,
966-
within: ToStackMatchConvertible,
967-
new_inames: InameStr | Sequence[InameStr | None] | None = None,
968-
suffix: str | None = None,
969-
tags: Mapping[str, Tag] | None = None) -> LoopKernel:
964+
def duplicate_inames(
965+
kernel: LoopKernel,
966+
inames: ToInameStrSetConvertible,
967+
within: ToStackMatchConvertible,
968+
new_inames: InameStr | Sequence[InameStr | None] | None = None,
969+
suffix: str | None = None,
970+
tags: Mapping[str, ToInameTagConvertible] | None = None
971+
) -> LoopKernel:
970972
"""
971973
:arg within: a stack match as understood by :func:`loopy.match.parse_stack_match`.
972974
"""

0 commit comments

Comments
 (0)