Skip to content

chore(deps): bump ml-dtypes from 0.6.0 to 0.7.0 in /requirements - #53

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/requirements/ml-dtypes-0.7.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/requirements/ml-dtypes-0.7.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor

Bumps ml-dtypes from 0.6.0 to 0.7.0.

Release notes

Sourced from ml-dtypes's releases.

v0.7.0

  • Added new 8-bit unsigned float type: ml_dtypes.float8_e5m3fnu (#407).
  • ml_dtypes types now use the NumPy 2 DType API (#374, #418, #424):
    • Fixed np.result_type and np.promote_types for ml_dtypes types and Python scalars. Mixed operations with Python int, float, and complex values now follow NumPy 2 (NEP 50) promotion rules instead of upcasting to float64 or complex128 (for example, bfloat16(2.0) + 1e-3 stays in bfloat16). Comparing a finite-only or unsigned float against an out-of-range Python float converts the Python float to the ml_dtypes type first (e.g., float8_e4m3fn(448.0) < 1000.0 is False because float8_e4m3fn(1000.0) overflows to NaN; use float(x) < 1000.0 for wider bounds).
    • Fixed np.can_cast so lossy casts between 1-byte types (such as float8_e4m3fn to float4_e2m1fn) are no longer reported as "safe", and widening intN casts to longlong and ulonglong are now "safe".
    • Added casts between all pairs of ml_dtypes types, including narrowing and mixed-sign intN casts, int4/uint4 <-> float6_e2m3fn, and casts involving float8_e8m0fnu.
    • Multi-axis and empty-array ufunc reductions now work across all ml_dtypes types.
    • Casting non-finite or out-of-range floats to integers now consistently returns 0 and emits an invalid warning; casting complex types to real or integer ml_dtypes types emits ComplexWarning; integer division by zero respects np.errstate; and np.ldexp supports 64-bit integer exponents on all platforms.
  • Registered byte-aligned ml_dtypes types with NumPy's DLPack support on NumPy 2.5+ (#402).
  • np.finfo now supports ml_dtypes float and complex types, ml_dtypes.finfo now accepts "complex32", and np.float_power is now supported for float and complex types (#395).
  • Changed np.dtype(complex32).kind from 'V' to 'c', and changed dtype.char for complex32 and bcomplex32 to 'J' and 'K' (#357).
  • arr.real and arr.imag now return correct results for bcomplex32 and complex32 arrays on NumPy 2.5+ (#383).
  • Fixed byte-swapping of bcomplex32 and complex32 arrays (#383).
  • Fixed NaN ordering for complex32 and bcomplex32 in np.sort and np.searchsorted (#429), casting purely imaginary values to bool (#395), and TypeError handling in two-argument complex32(real, imag) / bcomplex32(real, imag) (#439).
  • Fixed double rounding when converting to ml_dtypes float and complex types from float64, longdouble, complex128, clongdouble, 32- and 64-bit integers, and Python/NumPy scalars, and fixed a crash when constructing floats from invalid strings (#401).
  • Constructing a float or complex scalar from a Python int outside the int64

... (truncated)

Changelog

Sourced from ml-dtypes's changelog.

[0.7.0] - 2026-11-16

  • Added new 8-bit unsigned float type: ml_dtypes.float8_e5m3fnu (#407).
  • ml_dtypes types now use the NumPy 2 DType API (#374, #418, #424):
    • Fixed np.result_type and np.promote_types for ml_dtypes types and Python scalars. Mixed operations with Python int, float, and complex values now follow NumPy 2 (NEP 50) promotion rules instead of upcasting to float64 or complex128 (for example, bfloat16(2.0) + 1e-3 stays in bfloat16). Comparing a finite-only or unsigned float against an out-of-range Python float converts the Python float to the ml_dtypes type first (e.g., float8_e4m3fn(448.0) < 1000.0 is False because float8_e4m3fn(1000.0) overflows to NaN; use float(x) < 1000.0 for wider bounds).
    • Fixed np.can_cast so lossy casts between 1-byte types (such as float8_e4m3fn to float4_e2m1fn) are no longer reported as "safe", and widening intN casts to longlong and ulonglong are now "safe".
    • Added casts between all pairs of ml_dtypes types, including narrowing and mixed-sign intN casts, int4/uint4 <-> float6_e2m3fn, and casts involving float8_e8m0fnu.
    • Multi-axis and empty-array ufunc reductions now work across all ml_dtypes types.
    • Casting non-finite or out-of-range floats to integers now consistently returns 0 and emits an invalid warning; casting complex types to real or integer ml_dtypes types emits ComplexWarning; integer division by zero respects np.errstate; and np.ldexp supports 64-bit integer exponents on all platforms.
  • Registered byte-aligned ml_dtypes types with NumPy's DLPack support on NumPy 2.5+ (#402).
  • np.finfo now supports ml_dtypes float and complex types, ml_dtypes.finfo now accepts "complex32", and np.float_power is now supported for float and complex types (#395).
  • Changed np.dtype(complex32).kind from 'V' to 'c', and changed dtype.char for complex32 and bcomplex32 to 'J' and 'K' (#357).
  • arr.real and arr.imag now return correct results for bcomplex32 and complex32 arrays on NumPy 2.5+ (#383).
  • Fixed byte-swapping of bcomplex32 and complex32 arrays (#383).
  • Fixed NaN ordering for complex32 and bcomplex32 in np.sort and np.searchsorted (#429), casting purely imaginary values to bool (#395), and TypeError handling in two-argument complex32(real, imag) / bcomplex32(real, imag) (#439).
  • Fixed double rounding when converting to ml_dtypes float and complex types from float64, longdouble, complex128, clongdouble, 32- and 64-bit

... (truncated)

Commits
  • cdf3a65 [ml_dtypes] Prepare v0.7.0 release.
  • bc4af6c Fix clang-format lint error in ml_dtypes/include/complex_types.h.
  • b837bd9 Merge pull request #447 from nivupai:fix-large-int-construction
  • ce9c93e Convert Python ints beyond the int64 range to custom floats without OverflowE...
  • aa902b3 [ml_dtypes] Use PyLong_FromDouble in PyCustomFloat_Int and PyCustomComplex_Int.
  • 28d1fe2 [ml_dtypes] Truncate Python floats before range-checking in CastToIntN.
  • 70c2b81 Merge pull request #429 from DiadkoShmek:lezo3-complex-nan-order
  • e32ab30 Merge pull request #403 from EylonKrause:fix/intn-out-of-range-message
  • ac283a5 Merge pull request #437 from jax-ml:dependabot/github_actions/zizmorcore/zizm...
  • 7b0b6b8 Merge pull request #422 from DeanTMaxim:impl/standalone-complex-types
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ml-dtypes](https://github.com/jax-ml/ml_dtypes) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/jax-ml/ml_dtypes/releases)
- [Changelog](https://github.com/jax-ml/ml_dtypes/blob/main/CHANGELOG.md)
- [Commits](jax-ml/ml_dtypes@v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: ml-dtypes
  dependency-version: 0.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: automated pr, dependencies, python. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant