{ } Raw JSON

bundles / numpy 2.4.4 / numpy / _core / _exceptions / _display_as_base

function

numpy._core._exceptions:_display_as_base

source: /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