Unverified 提交 b2caa734 authored 作者: Maxim Kochurov's avatar Maxim Kochurov 提交者: GitHub

add dict for ordered set (#75)

上级 d78e1a1a
...@@ -12,7 +12,7 @@ def check_deterministic(iterable): ...@@ -12,7 +12,7 @@ def check_deterministic(iterable):
# pytensor to use exceptions correctly, so that this can be a TypeError. # pytensor to use exceptions correctly, so that this can be a TypeError.
if iterable is not None: if iterable is not None:
if not isinstance( if not isinstance(
iterable, (list, tuple, OrderedSet, types.GeneratorType, str) iterable, (list, tuple, OrderedSet, types.GeneratorType, str, dict)
): ):
if len(iterable) > 1: if len(iterable) > 1:
# We need to accept length 1 size to allow unpickle in tests. # We need to accept length 1 size to allow unpickle in tests.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论