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 / _exceptions / _display_as_base

function

numpy._core._exceptions:_display_as_base

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

Signature

def   _display_as_base ( cls )

Summary

A decorator that makes an exception class look like its base.

Extended Summary

We use this to hide subclasses that are implementation details - the user should catch the base type, which is what the traceback will show them.

Classes decorated with this decorator are subject to removal without a deprecation warning.

Aliases

  • numpy._core._exceptions._display_as_base