(
self: Array, /, *, api_version: Optional[str] = None
)
| 454 | return self.__class__._new(res) |
| 455 | |
| 456 | def __array_namespace__( |
| 457 | self: Array, /, *, api_version: Optional[str] = None |
| 458 | ) -> types.ModuleType: |
| 459 | if api_version is not None and not api_version.startswith("2021."): |
| 460 | raise ValueError(f"Unrecognized array API version: {api_version!r}") |
| 461 | return array_api |
| 462 | |
| 463 | def __bool__(self: Array, /) -> bool: |
| 464 | """ |
nothing calls this directly
no test coverage detected