Skip to content

Commit

Permalink
use chex for typing (#503)
Browse files Browse the repository at this point in the history
use chex for typing
  • Loading branch information
junpenglao committed Mar 12, 2024
1 parent 5eaeded commit 2d2290f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions blackjax/types.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
from typing import Any, Iterable, Mapping, Union

import jax
import jax.numpy as jnp
import numpy as np

#: JAX or Numpy array
Array = Union[np.ndarray, jnp.ndarray]
from chex import Array

#: JAX PyTrees
PyTree = Union[Array, Iterable["PyTree"], Mapping[Any, "PyTree"]]
Expand Down

0 comments on commit 2d2290f

Please sign in to comment.