Skip to content

Commit 47c8999

Browse files
Copilotinducer
andauthored
Fix Reduction.inames_set to return frozenset instead of mutable set (#998)
* Initial plan * Fix Reduction.inames_set to return frozenset instead of mutable set Agent-Logs-Url: https://github.com/inducer/loopy/sessions/ec0280a0-1f38-4798-a099-618bd80e5621 Co-authored-by: inducer <352067+inducer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: inducer <352067+inducer@users.noreply.github.com>
1 parent fe8bded commit 47c8999

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

loopy/symbolic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,8 @@ def is_tuple_typed(self) -> bool:
931931
return self.operation.arg_count > 1
932932

933933
@cached_property
934-
def inames_set(self) -> set[str]:
935-
return set(self.inames)
934+
def inames_set(self) -> frozenset[str]:
935+
return frozenset(self.inames)
936936

937937

938938
@p.expr_dataclass()

0 commit comments

Comments
 (0)