PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
numpy
/
typing
/
tests
/
data
/
reveal
from pathlib import Path import numpy as np path1: Path path2: str d1 = np.DataSource(path1) d2 = np.DataSource(path2) d3 = np.DataSource(None) reveal_type(d1.abspath("...")) # E: str reveal_type(d2.abspath("...")) # E: str reveal_type(d3.abspath("...")) # E: str reveal_type(d1.exists("...")) # E: bool reveal_type(d2.exists("...")) # E: bool reveal_type(d3.exists("...")) # E: bool reveal_type(d1.open("...", "r")) # E: IO[Any] reveal_type(d2.open("...", encoding="utf8")) # E: IO[Any] reveal_type(d3.open("...", newline="/n")) # E: IO[Any]
[-] npyio.pyi
[edit]
[-] dtype.pyi
[edit]
[-] comparisons.pyi
[edit]
[-] ndarray_shape_manipulation.pyi
[edit]
[-] lib_polynomial.pyi
[edit]
[-] lib_version.pyi
[edit]
[-] arithmetic.pyi
[edit]
[-] numerictypes.pyi
[edit]
[-] einsumfunc.pyi
[edit]
[-] warnings_and_errors.pyi
[edit]
[-] index_tricks.pyi
[edit]
[-] memmap.pyi
[edit]
[-] nditer.pyi
[edit]
[-] chararray.pyi
[edit]
[-] flatiter.pyi
[edit]
[-] arraypad.pyi
[edit]
[-] emath.pyi
[edit]
[-] linalg.pyi
[edit]
[-] nbit_base_example.pyi
[edit]
[-] shape_base.pyi
[edit]
[-] fromnumeric.pyi
[edit]
[-] version.pyi
[edit]
[-] scalars.pyi
[edit]
[-] datasource.pyi
[edit]
[-] constants.pyi
[edit]
[-] twodim_base.pyi
[edit]
[-] numeric.pyi
[edit]
[-] multiarray.pyi
[edit]
[-] ctypeslib.pyi
[edit]
[-] char.pyi
[edit]
[-] modules.pyi
[edit]
[-] arraysetops.pyi
[edit]
[-] lib_utils.pyi
[edit]
[-] testing.pyi
[edit]
[-] ufunclike.pyi
[edit]
[-] random.pyi
[edit]
[-] ufuncs.pyi
[edit]
[-] ndarray_conversion.pyi
[edit]
[-] fft.pyi
[edit]
[-] getlimits.pyi
[edit]
[-] stride_tricks.pyi
[edit]
[-] rec.pyi
[edit]
[-] false_positives.pyi
[edit]
[-] array_constructors.pyi
[edit]
[-] nested_sequence.pyi
[edit]
[-] type_check.pyi
[edit]
[-] matrix.pyi
[edit]
[-] mod.pyi
[edit]
[-] ndarray_misc.pyi
[edit]
[-] arrayterator.pyi
[edit]
[-] bitwise_ops.pyi
[edit]
[-] ufunc_config.pyi
[edit]
[+]
..
[-] lib_function_base.pyi
[edit]
[-] arrayprint.pyi
[edit]
[-] histograms.pyi
[edit]