Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib64
/
python3.11
/
site-packages
/
astroid
/
brain
/
__pycache__
/
File Content:
brain_numpy_ndarray.cpython-311.pyc
� �|oi&# � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ ddl mZ ddd�Zdd�Z e� � � e e e� � e� � d S )z&Astroid hooks for numpy ndarray class.� )�annotations)�numpy_supports_type_hints)�extract_node)�InferenceContext)� inference_tip)�AstroidManager)� AttributeN�context�InferenceContext | Nonec �v � d}t � � r|dz }t |� � } | � |�� � S )Na� class ndarray(object): def __init__(self, shape, dtype=float, buffer=None, offset=0, strides=None, order=None): self.T = numpy.ndarray([0, 0]) self.base = None self.ctypes = None self.data = None self.dtype = None self.flags = None # Should be a numpy.flatiter instance but not available for now # Putting an array instead so that iteration and indexing are authorized self.flat = np.ndarray([0, 0]) self.imag = np.ndarray([0, 0]) self.itemsize = None self.nbytes = None self.ndim = None self.real = np.ndarray([0, 0]) self.shape = numpy.ndarray([0, 0]) self.size = None self.strides = None def __abs__(self): return numpy.ndarray([0, 0]) def __add__(self, value): return numpy.ndarray([0, 0]) def __and__(self, value): return numpy.ndarray([0, 0]) def __array__(self, dtype=None): return numpy.ndarray([0, 0]) def __array_wrap__(self, obj): return numpy.ndarray([0, 0]) def __contains__(self, key): return True def __copy__(self): return numpy.ndarray([0, 0]) def __deepcopy__(self, memo): return numpy.ndarray([0, 0]) def __divmod__(self, value): return (numpy.ndarray([0, 0]), numpy.ndarray([0, 0])) def __eq__(self, value): return numpy.ndarray([0, 0]) def __float__(self): return 0. def __floordiv__(self): return numpy.ndarray([0, 0]) def __ge__(self, value): return numpy.ndarray([0, 0]) def __getitem__(self, key): return uninferable def __gt__(self, value): return numpy.ndarray([0, 0]) def __iadd__(self, value): return numpy.ndarray([0, 0]) def __iand__(self, value): return numpy.ndarray([0, 0]) def __ifloordiv__(self, value): return numpy.ndarray([0, 0]) def __ilshift__(self, value): return numpy.ndarray([0, 0]) def __imod__(self, value): return numpy.ndarray([0, 0]) def __imul__(self, value): return numpy.ndarray([0, 0]) def __int__(self): return 0 def __invert__(self): return numpy.ndarray([0, 0]) def __ior__(self, value): return numpy.ndarray([0, 0]) def __ipow__(self, value): return numpy.ndarray([0, 0]) def __irshift__(self, value): return numpy.ndarray([0, 0]) def __isub__(self, value): return numpy.ndarray([0, 0]) def __itruediv__(self, value): return numpy.ndarray([0, 0]) def __ixor__(self, value): return numpy.ndarray([0, 0]) def __le__(self, value): return numpy.ndarray([0, 0]) def __len__(self): return 1 def __lshift__(self, value): return numpy.ndarray([0, 0]) def __lt__(self, value): return numpy.ndarray([0, 0]) def __matmul__(self, value): return numpy.ndarray([0, 0]) def __mod__(self, value): return numpy.ndarray([0, 0]) def __mul__(self, value): return numpy.ndarray([0, 0]) def __ne__(self, value): return numpy.ndarray([0, 0]) def __neg__(self): return numpy.ndarray([0, 0]) def __or__(self, value): return numpy.ndarray([0, 0]) def __pos__(self): return numpy.ndarray([0, 0]) def __pow__(self): return numpy.ndarray([0, 0]) def __repr__(self): return str() def __rshift__(self): return numpy.ndarray([0, 0]) def __setitem__(self, key, value): return uninferable def __str__(self): return str() def __sub__(self, value): return numpy.ndarray([0, 0]) def __truediv__(self, value): return numpy.ndarray([0, 0]) def __xor__(self, value): return numpy.ndarray([0, 0]) def all(self, axis=None, out=None, keepdims=False): return np.ndarray([0, 0]) def any(self, axis=None, out=None, keepdims=False): return np.ndarray([0, 0]) def argmax(self, axis=None, out=None): return np.ndarray([0, 0]) def argmin(self, axis=None, out=None): return np.ndarray([0, 0]) def argpartition(self, kth, axis=-1, kind='introselect', order=None): return np.ndarray([0, 0]) def argsort(self, axis=-1, kind='quicksort', order=None): return np.ndarray([0, 0]) def astype(self, dtype, order='K', casting='unsafe', subok=True, copy=True): return np.ndarray([0, 0]) def byteswap(self, inplace=False): return np.ndarray([0, 0]) def choose(self, choices, out=None, mode='raise'): return np.ndarray([0, 0]) def clip(self, min=None, max=None, out=None): return np.ndarray([0, 0]) def compress(self, condition, axis=None, out=None): return np.ndarray([0, 0]) def conj(self): return np.ndarray([0, 0]) def conjugate(self): return np.ndarray([0, 0]) def copy(self, order='C'): return np.ndarray([0, 0]) def cumprod(self, axis=None, dtype=None, out=None): return np.ndarray([0, 0]) def cumsum(self, axis=None, dtype=None, out=None): return np.ndarray([0, 0]) def diagonal(self, offset=0, axis1=0, axis2=1): return np.ndarray([0, 0]) def dot(self, b, out=None): return np.ndarray([0, 0]) def dump(self, file): return None def dumps(self): return str() def fill(self, value): return None def flatten(self, order='C'): return np.ndarray([0, 0]) def getfield(self, dtype, offset=0): return np.ndarray([0, 0]) def item(self, *args): return uninferable def itemset(self, *args): return None def max(self, axis=None, out=None): return np.ndarray([0, 0]) def mean(self, axis=None, dtype=None, out=None, keepdims=False): return np.ndarray([0, 0]) def min(self, axis=None, out=None, keepdims=False): return np.ndarray([0, 0]) def newbyteorder(self, new_order='S'): return np.ndarray([0, 0]) def nonzero(self): return (1,) def partition(self, kth, axis=-1, kind='introselect', order=None): return None def prod(self, axis=None, dtype=None, out=None, keepdims=False): return np.ndarray([0, 0]) def ptp(self, axis=None, out=None): return np.ndarray([0, 0]) def put(self, indices, values, mode='raise'): return None def ravel(self, order='C'): return np.ndarray([0, 0]) def repeat(self, repeats, axis=None): return np.ndarray([0, 0]) def reshape(self, shape, order='C'): return np.ndarray([0, 0]) def resize(self, new_shape, refcheck=True): return None def round(self, decimals=0, out=None): return np.ndarray([0, 0]) def searchsorted(self, v, side='left', sorter=None): return np.ndarray([0, 0]) def setfield(self, val, dtype, offset=0): return None def setflags(self, write=None, align=None, uic=None): return None def sort(self, axis=-1, kind='quicksort', order=None): return None def squeeze(self, axis=None): return np.ndarray([0, 0]) def std(self, axis=None, dtype=None, out=None, ddof=0, keepdims=False): return np.ndarray([0, 0]) def sum(self, axis=None, dtype=None, out=None, keepdims=False): return np.ndarray([0, 0]) def swapaxes(self, axis1, axis2): return np.ndarray([0, 0]) def take(self, indices, axis=None, out=None, mode='raise'): return np.ndarray([0, 0]) def tobytes(self, order='C'): return b'' def tofile(self, fid, sep="", format="%s"): return None def tolist(self, ): return [] def tostring(self, order='C'): return b'' def trace(self, offset=0, axis1=0, axis2=1, dtype=None, out=None): return np.ndarray([0, 0]) def transpose(self, *axes): return np.ndarray([0, 0]) def var(self, axis=None, dtype=None, out=None, ddof=0, keepdims=False): return np.ndarray([0, 0]) def view(self, dtype=None, type=None): return np.ndarray([0, 0]) z` @classmethod def __class_getitem__(cls, value): return cls )r )r r �infer)�noder �ndarrays �s/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/astroid/brain/brain_numpy_ndarray.py�infer_numpy_ndarrayr sM � �~�G�~ !�"�"� �� � �� �� � �D��:�:�g�:�&�&�&� �return�boolc �B � t | t � � o | j dk S )Nr )� isinstancer �attrname)r s r �_looks_like_numpy_ndarrayr � s � ��d�I�&�&�E�4�=�I�+E�Er )N)r r )r r )�__doc__� __future__r �astroid.brain.brain_numpy_utilsr �astroid.builderr �astroid.contextr �astroid.inference_tipr �astroid.managerr �astroid.nodes.node_classesr r r �register_transform� r r �<module>r# s �� -� ,� "� "� "� "� "� "� E� E� E� E� E� E� (� (� (� (� (� (� ,� ,� ,� ,� ,� ,� /� /� /� /� /� /� *� *� *� *� *� *� 0� 0� 0� 0� 0� 0�G'� G'� G'� G'� G'�TF� F� F� F� �� � � #� #� ��M�%�&�&��� � � � r
Submit
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-311.pyc
213 bytes
0644
brain_argparse.cpython-311.pyc
2230 bytes
0644
brain_attrs.cpython-311.pyc
3258 bytes
0644
brain_boto3.cpython-311.pyc
1359 bytes
0644
brain_builtin_inference.cpython-311.pyc
47146 bytes
0644
brain_collections.cpython-311.pyc
4943 bytes
0644
brain_crypt.cpython-311.pyc
1051 bytes
0644
brain_ctypes.cpython-311.pyc
2629 bytes
0644
brain_curses.cpython-311.pyc
3671 bytes
0644
brain_dataclasses.cpython-311.pyc
25218 bytes
0644
brain_dateutil.cpython-311.pyc
1063 bytes
0644
brain_fstrings.cpython-311.pyc
3220 bytes
0644
brain_functools.cpython-311.pyc
8350 bytes
0644
brain_gi.cpython-311.pyc
8754 bytes
0644
brain_hashlib.cpython-311.pyc
3041 bytes
0644
brain_http.cpython-311.pyc
11154 bytes
0644
brain_hypothesis.cpython-311.pyc
2133 bytes
0644
brain_io.cpython-311.pyc
2024 bytes
0644
brain_mechanize.cpython-311.pyc
2904 bytes
0644
brain_multiprocessing.cpython-311.pyc
3671 bytes
0644
brain_namedtuple_enum.cpython-311.pyc
30436 bytes
0644
brain_nose.cpython-311.pyc
3850 bytes
0644
brain_numpy_core_einsumfunc.cpython-311.pyc
1089 bytes
0644
brain_numpy_core_fromnumeric.cpython-311.pyc
936 bytes
0644
brain_numpy_core_function_base.cpython-311.pyc
1554 bytes
0644
brain_numpy_core_multiarray.cpython-311.pyc
4475 bytes
0644
brain_numpy_core_numeric.cpython-311.pyc
2042 bytes
0644
brain_numpy_core_numerictypes.cpython-311.pyc
8508 bytes
0644
brain_numpy_core_umath.cpython-311.pyc
4879 bytes
0644
brain_numpy_ma.cpython-311.pyc
1085 bytes
0644
brain_numpy_ndarray.cpython-311.pyc
9593 bytes
0644
brain_numpy_random_mtrand.cpython-311.pyc
3591 bytes
0644
brain_numpy_utils.cpython-311.pyc
4202 bytes
0644
brain_pathlib.cpython-311.pyc
2602 bytes
0644
brain_pkg_resources.cpython-311.pyc
2388 bytes
0644
brain_pytest.cpython-311.pyc
2504 bytes
0644
brain_qt.cpython-311.pyc
4004 bytes
0644
brain_random.cpython-311.pyc
4734 bytes
0644
brain_re.cpython-311.pyc
3817 bytes
0644
brain_regex.cpython-311.pyc
4462 bytes
0644
brain_responses.cpython-311.pyc
2077 bytes
0644
brain_scipy_signal.cpython-311.pyc
2494 bytes
0644
brain_signal.cpython-311.pyc
4498 bytes
0644
brain_six.cpython-311.pyc
9804 bytes
0644
brain_sqlalchemy.cpython-311.pyc
1199 bytes
0644
brain_ssl.cpython-311.pyc
7079 bytes
0644
brain_subprocess.cpython-311.pyc
3856 bytes
0644
brain_threading.cpython-311.pyc
1059 bytes
0644
brain_type.cpython-311.pyc
3329 bytes
0644
brain_typing.cpython-311.pyc
17864 bytes
0644
brain_unittest.cpython-311.pyc
1361 bytes
0644
brain_uuid.cpython-311.pyc
1067 bytes
0644
helpers.cpython-311.pyc
1616 bytes
0644
N4ST4R_ID | Naxtarrr