$24 GRAYBYTE WORDPRESS FILE MANAGER $40

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass//array_like.py
from __future__ import annotations

from typing import Any

import numpy as np
from numpy._typing import ArrayLike, _SupportsArray

x1: ArrayLike = True
x2: ArrayLike = 5
x3: ArrayLike = 1.0
x4: ArrayLike = 1 + 1j
x5: ArrayLike = np.int8(1)
x6: ArrayLike = np.float64(1)
x7: ArrayLike = np.complex128(1)
x8: ArrayLike = np.array([1, 2, 3])
x9: ArrayLike = [1, 2, 3]
x10: ArrayLike = (1, 2, 3)
x11: ArrayLike = "foo"
x12: ArrayLike = memoryview(b'foo')


class A:
    def __array__(self, dtype: None | np.dtype[Any] = None) -> np.ndarray:
        return np.array([1, 2, 3])


x13: ArrayLike = A()

scalar: _SupportsArray = np.int64(1)
scalar.__array__()
array: _SupportsArray = np.array(1)
array.__array__()

a: _SupportsArray = A()
a.__array__()
a.__array__()

# Escape hatch for when you mean to make something like an object
# array.
object_array_scalar: Any = (i for i in range(10))
np.array(object_array_scalar)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.24 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
arithmetic.py
7.28 KB
17 Apr 2025 8.10 PM
root / root
0644
array_constructors.py
2.362 KB
17 Apr 2025 8.10 PM
root / root
0644
array_like.py
0.895 KB
17 Apr 2025 8.10 PM
root / root
0644
arrayprint.py
0.748 KB
17 Apr 2025 8.10 PM
root / root
0644
arrayterator.py
0.384 KB
17 Apr 2025 8.10 PM
root / root
0644
bitwise_ops.py
0.947 KB
17 Apr 2025 8.10 PM
root / root
0644
comparisons.py
2.922 KB
17 Apr 2025 8.10 PM
root / root
0644
dtype.py
1.044 KB
17 Apr 2025 8.10 PM
root / root
0644
einsumfunc.py
1.338 KB
17 Apr 2025 8.10 PM
root / root
0644
flatiter.py
0.17 KB
17 Apr 2025 8.10 PM
root / root
0644
fromnumeric.py
3.654 KB
17 Apr 2025 8.10 PM
root / root
0644
index_tricks.py
1.457 KB
17 Apr 2025 8.10 PM
root / root
0644
lib_utils.py
0.41 KB
17 Apr 2025 8.10 PM
root / root
0644
lib_version.py
0.292 KB
17 Apr 2025 8.10 PM
root / root
0644
literal.py
1.3 KB
17 Apr 2025 8.10 PM
root / root
0644
mod.py
1.541 KB
17 Apr 2025 8.10 PM
root / root
0644
modules.py
0.581 KB
17 Apr 2025 8.10 PM
root / root
0644
multiarray.py
1.3 KB
17 Apr 2025 8.10 PM
root / root
0644
ndarray_conversion.py
1.588 KB
17 Apr 2025 8.10 PM
root / root
0644
ndarray_misc.py
2.651 KB
17 Apr 2025 8.10 PM
root / root
0644
ndarray_shape_manipulation.py
0.625 KB
17 Apr 2025 8.10 PM
root / root
0644
numeric.py
1.455 KB
17 Apr 2025 8.10 PM
root / root
0644
numerictypes.py
0.732 KB
17 Apr 2025 8.10 PM
root / root
0644
random.py
60.431 KB
17 Apr 2025 8.10 PM
root / root
0644
scalars.py
3.397 KB
17 Apr 2025 8.10 PM
root / root
0644
simple.py
2.613 KB
17 Apr 2025 8.10 PM
root / root
0644
simple_py3.py
0.094 KB
17 Apr 2025 8.10 PM
root / root
0644
ufunc_config.py
1.094 KB
17 Apr 2025 8.10 PM
root / root
0644
ufunclike.py
1.015 KB
17 Apr 2025 8.10 PM
root / root
0644
ufuncs.py
0.451 KB
17 Apr 2025 8.10 PM
root / root
0644
warnings_and_errors.py
0.146 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF