This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / _core / _internal / _promote_fields

function

numpy._core._internal:_promote_fields

source: build-install/usr/lib/python3.14/site-packages/numpy/_core/_internal.py :410

Signature

def   _promote_fields ( dt1 dt2 )

Summary

Perform type promotion for two structured dtypes.

Parameters

dt1 : structured dtype

First dtype.

dt2 : structured dtype

Second dtype.

Returns

out : dtype

The promoted dtype

Notes

If one of the inputs is aligned, the result will be. The titles of both descriptors must match (point to the same field).

Aliases

  • numpy._core._internal._promote_fields