Silenced warning (#40)

This commit is contained in:
Patrick Kidger
2022-10-28 15:19:52 -07:00
committed by GitHub
parent d3651ca70e
commit 607f3c66b5
+2 -2
View File
@@ -22,7 +22,7 @@ import typing
from typing import Generic, TYPE_CHECKING, TypeVar
from typing_extensions import Protocol
import jax
import jax.tree_util as jtu
import typeguard
@@ -83,7 +83,7 @@ class _MetaSubscriptPyTree(type):
else:
return True
leaves = jax.tree_leaves(obj, is_leaf=is_leaftype)
leaves = jtu.tree_leaves(obj, is_leaf=is_leaftype)
return all(map(is_leaftype, leaves))