Skip to content

Commit

Permalink
Fix bugs in Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed Jun 7, 2024
1 parent f9dcddf commit bc5ba2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainunit/math/_compat_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ def intersect1d(
ar2: Union[jax.Array, np.ndarray],
assume_unique: bool = False,
return_indices: bool = False
) -> Union[jax.Array, Quantity, tuple[jax.Array | Quantity, jax.Array, jax.Array]]:
) -> Union[jax.Array, Quantity, tuple[Union[jax.Array, Quantity], jax.Array, jax.Array]]:
fail_for_dimension_mismatch(ar1, ar2, 'intersect1d')
unit = None
if isinstance(ar1, Quantity):
Expand Down

0 comments on commit bc5ba2a

Please sign in to comment.