SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib > python3.11 > site-packages > numpy > typing > tests > data > fail


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/typing/tests/data/fail

NameTypeSizeLast ModifiedActions
arithmetic.pyi File 3850 bytes April 17 2025 13:10:58.
array_constructors.pyi File 1089 bytes April 17 2025 13:10:58.
array_like.pyi File 455 bytes April 17 2025 13:10:58.
array_pad.pyi File 132 bytes April 17 2025 13:10:58.
arrayprint.pyi File 549 bytes April 17 2025 13:10:58.
arrayterator.pyi File 480 bytes April 17 2025 13:10:58.
bitwise_ops.pyi File 515 bytes April 17 2025 13:10:58.
char.pyi File 2615 bytes April 17 2025 13:10:58.
chararray.pyi File 2296 bytes April 17 2025 13:10:58.
comparisons.pyi File 888 bytes April 17 2025 13:10:58.
constants.pyi File 286 bytes April 17 2025 13:10:58.
datasource.pyi File 395 bytes April 17 2025 13:10:58.
dtype.pyi File 334 bytes April 17 2025 13:10:58.
einsumfunc.pyi File 539 bytes April 17 2025 13:10:58.
false_positives.pyi File 366 bytes April 17 2025 13:10:58.
flatiter.pyi File 843 bytes April 17 2025 13:10:58.
fromnumeric.pyi File 5591 bytes April 17 2025 13:10:58.
histograms.pyi File 367 bytes April 17 2025 13:10:58.
index_tricks.pyi File 509 bytes April 17 2025 13:10:58.
lib_function_base.pyi File 2081 bytes April 17 2025 13:10:58.
lib_polynomial.pyi File 913 bytes April 17 2025 13:10:58.
lib_utils.pyi File 276 bytes April 17 2025 13:10:58.
lib_version.pyi File 158 bytes April 17 2025 13:10:58.
linalg.pyi File 1322 bytes April 17 2025 13:10:58.
memmap.pyi File 159 bytes April 17 2025 13:10:58.
modules.pyi File 652 bytes April 17 2025 13:10:58.
multiarray.pyi File 1693 bytes April 17 2025 13:10:58.
ndarray.pyi File 405 bytes April 17 2025 13:10:58.
ndarray_misc.pyi File 1372 bytes April 17 2025 13:10:58.
nditer.pyi File 325 bytes April 17 2025 13:10:58.
nested_sequence.pyi File 427 bytes April 17 2025 13:10:58.
npyio.pyi File 780 bytes April 17 2025 13:10:58.
numerictypes.pyi File 276 bytes April 17 2025 13:10:58.
random.pyi File 2830 bytes April 17 2025 13:10:58.
rec.pyi File 704 bytes April 17 2025 13:10:58.
scalars.pyi File 2952 bytes April 17 2025 13:10:58.
shape_base.pyi File 152 bytes April 17 2025 13:10:58.
stride_tricks.pyi File 315 bytes April 17 2025 13:10:58.
testing.pyi File 1370 bytes April 17 2025 13:10:58.
twodim_base.pyi File 899 bytes April 17 2025 13:10:58.
type_check.pyi File 379 bytes April 17 2025 13:10:58.
ufunc_config.pyi File 733 bytes April 17 2025 13:10:58.
ufunclike.pyi File 679 bytes April 17 2025 13:10:58.
ufuncs.pyi File 1347 bytes April 17 2025 13:10:58.
warnings_and_errors.pyi File 174 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/typing/tests/data/fail/scalars.pyi

import sys
import numpy as np

f2: np.float16
f8: np.float64
c8: np.complex64

# Construction

np.float32(3j)  # E: incompatible type

# Technically the following examples are valid NumPy code. But they
# are not considered a best practice, and people who wish to use the
# stubs should instead do
#
# np.array([1.0, 0.0, 0.0], dtype=np.float32)
# np.array([], dtype=np.complex64)
#
# See e.g. the discussion on the mailing list
#
# https://mail.python.org/pipermail/numpy-discussion/2020-April/080566.html
#
# and the issue
#
# https://github.com/numpy/numpy-stubs/issues/41
#
# for more context.
np.float32([1.0, 0.0, 0.0])  # E: incompatible type
np.complex64([])  # E: incompatible type

np.complex64(1, 2)  # E: Too many arguments
# TODO: protocols (can't check for non-existent protocols w/ __getattr__)

np.datetime64(0)  # E: No overload variant

class A:
    def __float__(self):
        return 1.0


np.int8(A())  # E: incompatible type
np.int16(A())  # E: incompatible type
np.int32(A())  # E: incompatible type
np.int64(A())  # E: incompatible type
np.uint8(A())  # E: incompatible type
np.uint16(A())  # E: incompatible type
np.uint32(A())  # E: incompatible type
np.uint64(A())  # E: incompatible type

np.void("test")  # E: No overload variant
np.void("test", dtype=None)  # E: No overload variant

np.generic(1)  # E: Cannot instantiate abstract class
np.number(1)  # E: Cannot instantiate abstract class
np.integer(1)  # E: Cannot instantiate abstract class
np.inexact(1)  # E: Cannot instantiate abstract class
np.character("test")  # E: Cannot instantiate abstract class
np.flexible(b"test")  # E: Cannot instantiate abstract class

np.float64(value=0.0)  # E: Unexpected keyword argument
np.int64(value=0)  # E: Unexpected keyword argument
np.uint64(value=0)  # E: Unexpected keyword argument
np.complex128(value=0.0j)  # E: Unexpected keyword argument
np.str_(value='bob')  # E: No overload variant
np.bytes_(value=b'test')  # E: No overload variant
np.void(value=b'test')  # E: No overload variant
np.bool_(value=True)  # E: Unexpected keyword argument
np.datetime64(value="2019")  # E: No overload variant
np.timedelta64(value=0)  # E: Unexpected keyword argument

np.bytes_(b"hello", encoding='utf-8')  # E: No overload variant
np.str_("hello", encoding='utf-8')  # E: No overload variant

f8.item(1)  # E: incompatible type
f8.item((0, 1))  # E: incompatible type
f8.squeeze(axis=1)  # E: incompatible type
f8.squeeze(axis=(0, 1))  # E: incompatible type
f8.transpose(1)  # E: incompatible type

def func(a: np.float32) -> None: ...

func(f2)  # E: incompatible type
func(f8)  # E: incompatible type

round(c8)  # E: No overload variant

c8.__getnewargs__()  # E: Invalid self argument
f2.__getnewargs__()  # E: Invalid self argument
f2.hex()  # E: Invalid self argument
np.float16.fromhex("0x0.0p+0")  # E: Invalid self argument
f2.__trunc__()  # E: Invalid self argument
f2.__getformat__("float")  # E: Invalid self argument

SILENT KILLER Tool