Skip to content

Commit

Permalink
Add ignore for pre-commit (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
Randl authored Mar 30, 2024
1 parent d97ba20 commit 38a40e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diffrax/_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def upcast_or_raise(
target_dtype = jnp.result_type(array_for_dtype)
with jax.numpy_dtype_promotion("standard"):
promote_dtype = jnp.result_type(x_dtype, target_dtype)
config_value = jax.config.jax_numpy_dtype_promotion
config_value = jax.config.jax_numpy_dtype_promotion # pyright: ignore
if config_value == "strict":
if target_dtype != promote_dtype:
raise ValueError(
Expand Down

0 comments on commit 38a40e7

Please sign in to comment.