Skip to content

Commit

Permalink
fix: numpy integers with linspace (#107)
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed May 13, 2024
1 parent 110b256 commit 048cdd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unxt/_quantity/register_dispatches.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import jax
import jax.core
import jax.experimental.array_api as jax_xp
import numpy as np
from jax import Device

from quaxed._types import DType
Expand Down Expand Up @@ -109,7 +110,7 @@ def full_like(
def linspace(
start: Quantity,
stop: Quantity,
num: int,
num: int | np.integer,
*,
dtype: DType | None = None,
device: Device | None = None,
Expand Down

0 comments on commit 048cdd0

Please sign in to comment.