bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / _external / array_api_extra / _lib / _utils / _helpers / is_python_scalar
function
scipy._external.array_api_extra._lib._utils._helpers:is_python_scalar
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