{ } Raw JSON

bundles / scipy 1.17.1 / scipy / _lib / array_api_extra / _lib / _utils / _helpers / is_python_scalar

function

scipy._lib.array_api_extra._lib._utils._helpers:is_python_scalar

source: /scipy/_lib/array_api_extra/_lib/_utils/_helpers.py :148

Signature

def   is_python_scalar ( x : object )  →  TypeIs[complex]

Summary

Return True if x is a Python scalar, False otherwise.

Aliases

  • scipy.differentiate.xpx._lib._lazy.is_python_scalar