Skip to content

Commit d3dec93

Browse files
committed
ignore
1 parent 73dcc3d commit d3dec93

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

diffrax_extensions/_misc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def static_select(pred: BoolScalarLike, a: ArrayLike, b: ArrayLike) -> ArrayLike
151151
# This in turn allows us to perform some trace-time optimisations that XLA isn't
152152
# smart enough to do on its own.
153153
if isinstance(pred, (np.ndarray, np.generic)) and pred.shape == ():
154-
pred = pred.item()
154+
pred = pred.item() # pyright: ignore
155155
if pred is True:
156156
return a
157157
elif pred is False:

diffrax_extensions/_progress_meter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _step_bar(bar: list[float], progress: FloatScalarLike) -> None:
123123
if eqx.is_array(progress):
124124
# May not be an array when called with `JAX_DISABLE_JIT=1`
125125
progress = cast(Union[Array, np.ndarray], progress)
126-
progress = progress.item()
126+
progress = progress.item() # pyright: ignore
127127
progress = cast(float, progress)
128128
bar[0] = progress
129129
print(f"{100 * progress:.2f}%")

docs/api/terms.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ the friction and the damping of the system.
151151
These terms enable the use of ULD-specific solvers which can be found
152152
[here](./solvers/sde_solvers.md#underdamped-langevin-solvers). Note that these ULD solvers will only work if given
153153
terms with structure `MultiTerm(UnderdampedLangevinDriftTerm(gamma, u, grad_f), UnderdampedLangevinDiffusionTerm(gamma, u, bm))`,
154-
where `bm` is an [`diffrax.AbstractBrownianPath`][] and the same values of `gammma` and `u` are passed to both terms.
154+
where `bm` is an [`diffrax_extensions.AbstractBrownianPath`][] and the same values of `gammma` and `u` are passed to both terms.
155155

156-
::: diffrax.UnderdampedLangevinDriftTerm
156+
::: diffrax_extensions.UnderdampedLangevinDriftTerm
157157
selection:
158158
members:
159159
- __init__
160160

161-
::: diffrax.UnderdampedLangevinDiffusionTerm
161+
::: diffrax_extensions.UnderdampedLangevinDiffusionTerm
162162
selection:
163163
members:
164164
- __init__

0 commit comments

Comments
 (0)