Skip to content

Commit f2bc707

Browse files
Armavicamaresb
andauthored
Further simplify dict enumeration
Co-authored-by: Ben Mares <services-git-throwaway1@tensorial.com>
1 parent a04379e commit f2bc707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytensor/link/c/type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ def __hash__(self):
508508
(
509509
type(self),
510510
self.ctype,
511-
*((k, self[k]) for k in sorted(self.keys())),
512-
*((a, self.aliases[a]) for a in sorted(self.aliases.keys())),
511+
*sorted(self.items()),
512+
*sorted(self.aliases.items()),
513513
)
514514
)
515515

0 commit comments

Comments
 (0)