Skip to content

Commit b2caa73

Browse files
authored
add dict for ordered set (#75)
Co-authored-by: Maxim Kochurov <max.kochurov@pymc-devs.org>
1 parent d78e1a1 commit b2caa73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/misc/ordered_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def check_deterministic(iterable):
1212
# pytensor to use exceptions correctly, so that this can be a TypeError.
1313
if iterable is not None:
1414
if not isinstance(
15-
iterable, (list, tuple, OrderedSet, types.GeneratorType, str)
15+
iterable, (list, tuple, OrderedSet, types.GeneratorType, str, dict)
1616
):
1717
if len(iterable) > 1:
1818
# We need to accept length 1 size to allow unpickle in tests.

0 commit comments

Comments
 (0)