From 1b53ff77106e8149a3005fbd0b26e2a594d96d80 Mon Sep 17 00:00:00 2001 From: jorenham Date: Fri, 23 Aug 2024 00:12:07 +0200 Subject: [PATCH] remove stubs for scipy's internal tests --- scipy-stubs/_lib/__init__.pyi | 4 - .../array_api_compat/__init__.pyi | 3 - .../array_api_compat/_internal.pyi | 3 - .../array_api_compat/common/__init__.pyi | 1 - .../array_api_compat/common/_aliases.pyi | 126 ------ .../array_api_compat/common/_fft.pyi | 63 --- .../array_api_compat/common/_helpers.pyi | 22 - .../array_api_compat/common/_linalg.pyi | 49 --- .../array_api_compat/common/_typing.pyi | 9 - .../array_api_compat/cupy/__init__.pyi | 7 - .../array_api_compat/cupy/_aliases.pyi | 71 --- .../array_api_compat/cupy/_typing.pyi | 7 - .../array_api_compat/cupy/fft.pyi | 20 - .../array_api_compat/cupy/linalg.pyi | 25 -- .../array_api_compat/dask/__init__.pyi | 0 .../array_api_compat/dask/array/__init__.pyi | 5 - .../array_api_compat/dask/array/_aliases.pyi | 83 ---- .../array_api_compat/dask/array/linalg.pyi | 27 -- .../array_api_compat/numpy/__init__.pyi | 8 - .../array_api_compat/numpy/_aliases.pyi | 73 --- .../array_api_compat/numpy/_typing.pyi | 9 - .../array_api_compat/numpy/fft.pyi | 19 - .../array_api_compat/numpy/linalg.pyi | 28 -- .../array_api_compat/torch/__init__.pyi | 6 - .../array_api_compat/torch/_aliases.pyi | 124 ------ .../array_api_compat/torch/fft.pyi | 47 -- .../array_api_compat/torch/linalg.pyi | 25 -- .../_lib/array_api_compat/docs/conf.pyi | 22 - scipy-stubs/_lib/array_api_compat/setup.pyi | 3 - .../_lib/array_api_compat/tests/__init__.pyi | 0 .../_lib/array_api_compat/tests/_helpers.pyi | 6 - .../_lib/array_api_compat/tests/test_all.pyi | 3 - .../tests/test_array_namespace.pyi | 9 - .../array_api_compat/tests/test_common.pyi | 19 - .../array_api_compat/tests/test_isdtype.pyi | 11 - .../tests/test_no_dependencies.pyi | 6 - .../array_api_compat/tests/test_vendoring.pyi | 4 - .../array_api_compat/vendor_test/__init__.pyi | 0 .../vendor_test/uses_cupy.pyi | 0 .../vendor_test/uses_dask.pyi | 0 .../vendor_test/uses_numpy.pyi | 0 .../vendor_test/uses_torch.pyi | 0 scipy-stubs/_lib/cobyqa/cobyqa/__init__.pyi | 4 - scipy-stubs/_lib/cobyqa/cobyqa/framework.pyi | 75 ---- scipy-stubs/_lib/cobyqa/cobyqa/main.pyi | 41 -- scipy-stubs/_lib/cobyqa/cobyqa/models.pyi | 79 ---- scipy-stubs/_lib/cobyqa/cobyqa/problem.pyi | 116 ----- scipy-stubs/_lib/cobyqa/cobyqa/settings.pyi | 56 --- .../cobyqa/cobyqa/subsolvers/__init__.pyi | 6 - .../cobyqa/cobyqa/subsolvers/geometry.pyi | 7 - .../_lib/cobyqa/cobyqa/subsolvers/optim.pyi | 12 - .../_lib/cobyqa/cobyqa/tests/__init__.pyi | 0 .../_lib/cobyqa/cobyqa/tests/test_main.pyi | 28 -- .../_lib/cobyqa/cobyqa/tests/test_models.pyi | 33 -- .../_lib/cobyqa/cobyqa/tests/test_problem.pyi | 53 --- .../_lib/cobyqa/cobyqa/utils/__init__.pyi | 8 - .../_lib/cobyqa/cobyqa/utils/exceptions.pyi | 4 - scipy-stubs/_lib/cobyqa/cobyqa/utils/math.pyi | 7 - .../cobyqa/cobyqa/utils/tests/__init__.pyi | 0 .../cobyqa/utils/tests/test_exceptions.pyi | 11 - .../cobyqa/cobyqa/utils/tests/test_math.pyi | 17 - .../_lib/cobyqa/cobyqa/utils/versions.pyi | 1 - scipy-stubs/_lib/cobyqa/doc/source/conf.pyi | 39 -- .../_lib/cobyqa/examples/feasibility.pyi | 4 - .../_lib/cobyqa/examples/powell1994.pyi | 4 - .../_lib/cobyqa/examples/powell2015.pyi | 4 - .../_lib/cobyqa/examples/quadratic.pyi | 4 - .../_lib/cobyqa/examples/rosenbrock.pyi | 1 - scipy-stubs/_lib/highs/check/pythontest.pyi | 10 - .../highs/examples/call_highs_from_python.pyi | 24 - .../examples/call_highs_from_python1.pyi | 46 -- .../highs/src/interfaces/highs_python_api.pyi | 11 - .../interfaces/highspy/highspy/__init__.pyi | 25 -- .../src/interfaces/highspy/highspy/highs.pyi | 30 -- .../highspy/highspy/tests/__init__.pyi | 0 .../highspy/highspy/tests/test_highspy.pyi | 12 - .../highs/src/interfaces/highspy/setup.pyi | 8 - .../_lib/unuran/get_and_clean_unuran.pyi | 0 scipy-stubs/cluster/__init__.pyi | 2 - scipy-stubs/constants/__init__.pyi | 4 - scipy-stubs/constants/codata.pyi | 6 +- scipy-stubs/constants/constants.pyi | 6 +- scipy-stubs/datasets/__init__.pyi | 4 - scipy-stubs/differentiate/__init__.pyi | 5 - scipy-stubs/differentiate/_differentiate.pyi | 27 -- scipy-stubs/fft/__init__.pyi | 4 - scipy-stubs/fft/_pocketfft/__init__.pyi | 4 - scipy-stubs/fft/_pocketfft/tests/__init__.pyi | 0 .../fft/_pocketfft/tests/test_basic.pyi | 203 --------- .../_pocketfft/tests/test_real_transforms.pyi | 65 --- scipy-stubs/fftpack/__init__.pyi | 4 - scipy-stubs/integrate/__init__.pyi | 4 - scipy-stubs/integrate/_ivp/tests/__init__.pyi | 0 scipy-stubs/integrate/_ivp/tests/test_ivp.pyi | 67 --- scipy-stubs/integrate/_ivp/tests/test_rk.pyi | 8 - scipy-stubs/interpolate/__init__.pyi | 3 - scipy-stubs/io/__init__.pyi | 4 - scipy-stubs/io/_harwell_boeing/__init__.pyi | 4 - .../io/_harwell_boeing/tests/__init__.pyi | 0 .../tests/test_fortran_format.pyi | 26 -- .../io/_harwell_boeing/tests/test_hb.pyi | 15 - scipy-stubs/io/arff/__init__.pyi | 4 - scipy-stubs/io/arff/tests/__init__.pyi | 0 scipy-stubs/io/arff/tests/test_arffread.pyi | 73 --- scipy-stubs/io/matlab/__init__.pyi | 4 - scipy-stubs/io/matlab/tests/__init__.pyi | 0 .../io/matlab/tests/test_byteordercodes.pyi | 2 - scipy-stubs/io/matlab/tests/test_mio.pyi | 115 ----- .../io/matlab/tests/test_mio5_utils.pyi | 6 - .../io/matlab/tests/test_mio_funcs.pyi | 8 - .../io/matlab/tests/test_mio_utils.pyi | 4 - scipy-stubs/io/matlab/tests/test_miobase.pyi | 3 - .../io/matlab/tests/test_pathological.pyi | 7 - scipy-stubs/io/matlab/tests/test_streams.pyi | 24 - scipy-stubs/linalg/__init__.pyi | 4 - scipy-stubs/misc/__init__.pyi | 3 - scipy-stubs/ndimage/__init__.pyi | 4 - .../utils/generate_label_testvectors.pyi | 4 - scipy-stubs/odr/__init__.pyi | 4 - scipy-stubs/optimize/__init__.pyi | 4 - .../_trustregion_constr/tests/__init__.pyi | 0 .../tests/test_canonical_constraint.pyi | 18 - .../tests/test_nested_minimize.pyi | 9 - .../tests/test_projections.pyi | 24 - .../tests/test_qp_subproblem.pyi | 47 -- .../_trustregion_constr/tests/test_report.pyi | 5 - scipy-stubs/signal/__init__.pyi | 4 - scipy-stubs/sparse/__init__.pyi | 5 - scipy-stubs/sparse/csgraph/__init__.pyi | 3 - scipy-stubs/sparse/csgraph/tests/__init__.pyi | 0 .../tests/test_connected_components.pyi | 10 - .../sparse/csgraph/tests/test_conversions.pyi | 6 - .../sparse/csgraph/tests/test_flow.pyi | 22 - .../csgraph/tests/test_graph_laplacian.pyi | 19 - .../sparse/csgraph/tests/test_matching.pyi | 27 -- .../csgraph/tests/test_pydata_sparse.pyi | 18 - .../sparse/csgraph/tests/test_reordering.pyi | 6 - .../csgraph/tests/test_shortest_path.pyi | 56 --- .../csgraph/tests/test_spanning_tree.pyi | 4 - .../sparse/csgraph/tests/test_traversal.pyi | 13 - scipy-stubs/sparse/linalg/__init__.pyi | 4 - .../sparse/linalg/_dsolve/__init__.pyi | 4 - .../sparse/linalg/_dsolve/tests/__init__.pyi | 0 .../linalg/_dsolve/tests/test_linsolve.pyi | 103 ----- scipy-stubs/sparse/linalg/_eigen/__init__.pyi | 4 - .../sparse/linalg/_eigen/tests/__init__.pyi | 0 .../sparse/linalg/_eigen/tests/test_svds.pyi | 65 --- .../sparse/linalg/_isolve/__init__.pyi | 4 - .../sparse/linalg/_isolve/tests/__init__.pyi | 0 .../linalg/_isolve/tests/test_gcrotmk.pyi | 25 -- .../linalg/_isolve/tests/test_iterative.pyi | 70 --- .../linalg/_isolve/tests/test_lgmres.pyi | 26 -- .../sparse/linalg/_isolve/tests/test_lsmr.pyi | 40 -- .../sparse/linalg/_isolve/tests/test_lsqr.pyi | 21 - .../linalg/_isolve/tests/test_minres.pyi | 11 - .../linalg/_isolve/tests/test_utils.pyi | 1 - scipy-stubs/sparse/linalg/tests/__init__.pyi | 0 .../linalg/tests/test_expm_multiply.pyi | 36 -- .../sparse/linalg/tests/test_interface.pyi | 31 -- .../sparse/linalg/tests/test_matfuncs.pyi | 49 --- scipy-stubs/sparse/linalg/tests/test_norm.pyi | 16 - .../sparse/linalg/tests/test_onenormest.pyi | 22 - .../sparse/linalg/tests/test_propack.pyi | 16 - .../linalg/tests/test_pydata_sparse.pyi | 29 -- .../tests/test_special_sparse_arrays.pyi | 31 -- scipy-stubs/sparse/tests/__init__.pyi | 0 .../sparse/tests/test_arithmetic1d.pyi | 30 -- scipy-stubs/sparse/tests/test_array_api.pyi | 63 --- scipy-stubs/sparse/tests/test_base.pyi | 416 ------------------ scipy-stubs/sparse/tests/test_common1d.pyi | 52 --- scipy-stubs/sparse/tests/test_construct.pyi | 65 --- scipy-stubs/sparse/tests/test_coo.pyi | 27 -- scipy-stubs/sparse/tests/test_csc.pyi | 6 - scipy-stubs/sparse/tests/test_csr.pyi | 16 - scipy-stubs/sparse/tests/test_dok.pyi | 38 -- scipy-stubs/sparse/tests/test_extract.pyi | 10 - scipy-stubs/sparse/tests/test_indexing1d.pyi | 41 -- scipy-stubs/sparse/tests/test_matrix_io.pyi | 23 - scipy-stubs/sparse/tests/test_minmax1d.pyi | 26 -- scipy-stubs/sparse/tests/test_sparsetools.pyi | 30 -- scipy-stubs/sparse/tests/test_spfuncs.pyi | 13 - scipy-stubs/sparse/tests/test_sputils.pyi | 16 - 182 files changed, 4 insertions(+), 4237 deletions(-) delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/__init__.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/_internal.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/common/__init__.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/common/_aliases.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/common/_fft.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/common/_helpers.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/common/_linalg.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/common/_typing.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/__init__.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/_aliases.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/_typing.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/fft.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/linalg.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/dask/__init__.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/__init__.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/_aliases.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/linalg.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/__init__.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/_aliases.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/_typing.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/fft.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/linalg.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/torch/__init__.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/torch/_aliases.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/torch/fft.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/array_api_compat/torch/linalg.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/docs/conf.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/setup.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/tests/__init__.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/tests/_helpers.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/tests/test_all.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/tests/test_array_namespace.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/tests/test_common.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/tests/test_isdtype.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/tests/test_no_dependencies.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/tests/test_vendoring.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/vendor_test/__init__.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/vendor_test/uses_cupy.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/vendor_test/uses_dask.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/vendor_test/uses_numpy.pyi delete mode 100644 scipy-stubs/_lib/array_api_compat/vendor_test/uses_torch.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/__init__.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/framework.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/main.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/models.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/problem.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/settings.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/__init__.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/geometry.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/optim.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/tests/__init__.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/tests/test_main.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/tests/test_models.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/tests/test_problem.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/utils/__init__.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/utils/exceptions.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/utils/math.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/__init__.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/test_exceptions.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/test_math.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/cobyqa/utils/versions.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/doc/source/conf.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/examples/feasibility.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/examples/powell1994.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/examples/powell2015.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/examples/quadratic.pyi delete mode 100644 scipy-stubs/_lib/cobyqa/examples/rosenbrock.pyi delete mode 100644 scipy-stubs/_lib/highs/check/pythontest.pyi delete mode 100644 scipy-stubs/_lib/highs/examples/call_highs_from_python.pyi delete mode 100644 scipy-stubs/_lib/highs/examples/call_highs_from_python1.pyi delete mode 100644 scipy-stubs/_lib/highs/src/interfaces/highs_python_api.pyi delete mode 100644 scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/__init__.pyi delete mode 100644 scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/highs.pyi delete mode 100644 scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/tests/__init__.pyi delete mode 100644 scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/tests/test_highspy.pyi delete mode 100644 scipy-stubs/_lib/highs/src/interfaces/highspy/setup.pyi delete mode 100644 scipy-stubs/_lib/unuran/get_and_clean_unuran.pyi delete mode 100644 scipy-stubs/differentiate/__init__.pyi delete mode 100644 scipy-stubs/differentiate/_differentiate.pyi delete mode 100644 scipy-stubs/fft/_pocketfft/tests/__init__.pyi delete mode 100644 scipy-stubs/fft/_pocketfft/tests/test_basic.pyi delete mode 100644 scipy-stubs/fft/_pocketfft/tests/test_real_transforms.pyi delete mode 100644 scipy-stubs/integrate/_ivp/tests/__init__.pyi delete mode 100644 scipy-stubs/integrate/_ivp/tests/test_ivp.pyi delete mode 100644 scipy-stubs/integrate/_ivp/tests/test_rk.pyi delete mode 100644 scipy-stubs/io/_harwell_boeing/tests/__init__.pyi delete mode 100644 scipy-stubs/io/_harwell_boeing/tests/test_fortran_format.pyi delete mode 100644 scipy-stubs/io/_harwell_boeing/tests/test_hb.pyi delete mode 100644 scipy-stubs/io/arff/tests/__init__.pyi delete mode 100644 scipy-stubs/io/arff/tests/test_arffread.pyi delete mode 100644 scipy-stubs/io/matlab/tests/__init__.pyi delete mode 100644 scipy-stubs/io/matlab/tests/test_byteordercodes.pyi delete mode 100644 scipy-stubs/io/matlab/tests/test_mio.pyi delete mode 100644 scipy-stubs/io/matlab/tests/test_mio5_utils.pyi delete mode 100644 scipy-stubs/io/matlab/tests/test_mio_funcs.pyi delete mode 100644 scipy-stubs/io/matlab/tests/test_mio_utils.pyi delete mode 100644 scipy-stubs/io/matlab/tests/test_miobase.pyi delete mode 100644 scipy-stubs/io/matlab/tests/test_pathological.pyi delete mode 100644 scipy-stubs/io/matlab/tests/test_streams.pyi delete mode 100644 scipy-stubs/ndimage/utils/generate_label_testvectors.pyi delete mode 100644 scipy-stubs/optimize/_trustregion_constr/tests/__init__.pyi delete mode 100644 scipy-stubs/optimize/_trustregion_constr/tests/test_canonical_constraint.pyi delete mode 100644 scipy-stubs/optimize/_trustregion_constr/tests/test_nested_minimize.pyi delete mode 100644 scipy-stubs/optimize/_trustregion_constr/tests/test_projections.pyi delete mode 100644 scipy-stubs/optimize/_trustregion_constr/tests/test_qp_subproblem.pyi delete mode 100644 scipy-stubs/optimize/_trustregion_constr/tests/test_report.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/__init__.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/test_connected_components.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/test_conversions.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/test_flow.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/test_graph_laplacian.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/test_matching.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/test_pydata_sparse.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/test_reordering.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/test_shortest_path.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/test_spanning_tree.pyi delete mode 100644 scipy-stubs/sparse/csgraph/tests/test_traversal.pyi delete mode 100644 scipy-stubs/sparse/linalg/_dsolve/tests/__init__.pyi delete mode 100644 scipy-stubs/sparse/linalg/_dsolve/tests/test_linsolve.pyi delete mode 100644 scipy-stubs/sparse/linalg/_eigen/tests/__init__.pyi delete mode 100644 scipy-stubs/sparse/linalg/_eigen/tests/test_svds.pyi delete mode 100644 scipy-stubs/sparse/linalg/_isolve/tests/__init__.pyi delete mode 100644 scipy-stubs/sparse/linalg/_isolve/tests/test_gcrotmk.pyi delete mode 100644 scipy-stubs/sparse/linalg/_isolve/tests/test_iterative.pyi delete mode 100644 scipy-stubs/sparse/linalg/_isolve/tests/test_lgmres.pyi delete mode 100644 scipy-stubs/sparse/linalg/_isolve/tests/test_lsmr.pyi delete mode 100644 scipy-stubs/sparse/linalg/_isolve/tests/test_lsqr.pyi delete mode 100644 scipy-stubs/sparse/linalg/_isolve/tests/test_minres.pyi delete mode 100644 scipy-stubs/sparse/linalg/_isolve/tests/test_utils.pyi delete mode 100644 scipy-stubs/sparse/linalg/tests/__init__.pyi delete mode 100644 scipy-stubs/sparse/linalg/tests/test_expm_multiply.pyi delete mode 100644 scipy-stubs/sparse/linalg/tests/test_interface.pyi delete mode 100644 scipy-stubs/sparse/linalg/tests/test_matfuncs.pyi delete mode 100644 scipy-stubs/sparse/linalg/tests/test_norm.pyi delete mode 100644 scipy-stubs/sparse/linalg/tests/test_onenormest.pyi delete mode 100644 scipy-stubs/sparse/linalg/tests/test_propack.pyi delete mode 100644 scipy-stubs/sparse/linalg/tests/test_pydata_sparse.pyi delete mode 100644 scipy-stubs/sparse/linalg/tests/test_special_sparse_arrays.pyi delete mode 100644 scipy-stubs/sparse/tests/__init__.pyi delete mode 100644 scipy-stubs/sparse/tests/test_arithmetic1d.pyi delete mode 100644 scipy-stubs/sparse/tests/test_array_api.pyi delete mode 100644 scipy-stubs/sparse/tests/test_base.pyi delete mode 100644 scipy-stubs/sparse/tests/test_common1d.pyi delete mode 100644 scipy-stubs/sparse/tests/test_construct.pyi delete mode 100644 scipy-stubs/sparse/tests/test_coo.pyi delete mode 100644 scipy-stubs/sparse/tests/test_csc.pyi delete mode 100644 scipy-stubs/sparse/tests/test_csr.pyi delete mode 100644 scipy-stubs/sparse/tests/test_dok.pyi delete mode 100644 scipy-stubs/sparse/tests/test_extract.pyi delete mode 100644 scipy-stubs/sparse/tests/test_indexing1d.pyi delete mode 100644 scipy-stubs/sparse/tests/test_matrix_io.pyi delete mode 100644 scipy-stubs/sparse/tests/test_minmax1d.pyi delete mode 100644 scipy-stubs/sparse/tests/test_sparsetools.pyi delete mode 100644 scipy-stubs/sparse/tests/test_spfuncs.pyi delete mode 100644 scipy-stubs/sparse/tests/test_sputils.pyi diff --git a/scipy-stubs/_lib/__init__.pyi b/scipy-stubs/_lib/__init__.pyi index f2d15b33..e69de29b 100644 --- a/scipy-stubs/_lib/__init__.pyi +++ b/scipy-stubs/_lib/__init__.pyi @@ -1,4 +0,0 @@ -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/__init__.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/__init__.pyi deleted file mode 100644 index f1e35092..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/__init__.pyi +++ /dev/null @@ -1,3 +0,0 @@ -from .common import * - -__version__: str diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/_internal.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/_internal.pyi deleted file mode 100644 index 260b24c6..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/_internal.pyi +++ /dev/null @@ -1,3 +0,0 @@ -from scipy._typing import Untyped - -def get_xp(xp) -> Untyped: ... diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/__init__.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/common/__init__.pyi deleted file mode 100644 index ce3f44dd..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/__init__.pyi +++ /dev/null @@ -1 +0,0 @@ -from ._helpers import * diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_aliases.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_aliases.pyi deleted file mode 100644 index 8b6c186f..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_aliases.pyi +++ /dev/null @@ -1,126 +0,0 @@ -from collections.abc import Sequence -from typing import NamedTuple - -from ._helpers import array_namespace as array_namespace -from ._typing import Device as Device, Dtype as Dtype, ndarray as ndarray - -def arange( - start: int | float, - /, - stop: int | float | None = None, - step: int | float = 1, - *, - xp, - dtype: Dtype | None = None, - device: Device | None = None, - **kwargs, -) -> ndarray: ... -def empty(shape: int | tuple[int, ...], xp, *, dtype: Dtype | None = None, device: Device | None = None, **kwargs) -> ndarray: ... -def empty_like(x: ndarray, /, xp, *, dtype: Dtype | None = None, device: Device | None = None, **kwargs) -> ndarray: ... -def eye( - n_rows: int, - n_cols: int | None = None, - /, - *, - xp, - k: int = 0, - dtype: Dtype | None = None, - device: Device | None = None, - **kwargs, -) -> ndarray: ... -def full( - shape: int | tuple[int, ...], - fill_value: int | float, - xp, - *, - dtype: Dtype | None = None, - device: Device | None = None, - **kwargs, -) -> ndarray: ... -def full_like( - x: ndarray, /, fill_value: int | float, *, xp, dtype: Dtype | None = None, device: Device | None = None, **kwargs -) -> ndarray: ... -def linspace( - start: int | float, - stop: int | float, - /, - num: int, - *, - xp, - dtype: Dtype | None = None, - device: Device | None = None, - endpoint: bool = True, - **kwargs, -) -> ndarray: ... -def ones(shape: int | tuple[int, ...], xp, *, dtype: Dtype | None = None, device: Device | None = None, **kwargs) -> ndarray: ... -def ones_like(x: ndarray, /, xp, *, dtype: Dtype | None = None, device: Device | None = None, **kwargs) -> ndarray: ... -def zeros(shape: int | tuple[int, ...], xp, *, dtype: Dtype | None = None, device: Device | None = None, **kwargs) -> ndarray: ... -def zeros_like(x: ndarray, /, xp, *, dtype: Dtype | None = None, device: Device | None = None, **kwargs) -> ndarray: ... - -class UniqueAllResult(NamedTuple): - values: ndarray - indices: ndarray - inverse_indices: ndarray - counts: ndarray - -class UniqueCountsResult(NamedTuple): - values: ndarray - counts: ndarray - -class UniqueInverseResult(NamedTuple): - values: ndarray - inverse_indices: ndarray - -def unique_all(x: ndarray, /, xp) -> UniqueAllResult: ... -def unique_counts(x: ndarray, /, xp) -> UniqueCountsResult: ... -def unique_inverse(x: ndarray, /, xp) -> UniqueInverseResult: ... -def unique_values(x: ndarray, /, xp) -> ndarray: ... -def astype(x: ndarray, dtype: Dtype, /, *, copy: bool = True) -> ndarray: ... -def std( - x: ndarray, - /, - xp, - *, - axis: int | tuple[int, ...] | None = None, - correction: int | float = 0.0, - keepdims: bool = False, - **kwargs, -) -> ndarray: ... -def var( - x: ndarray, - /, - xp, - *, - axis: int | tuple[int, ...] | None = None, - correction: int | float = 0.0, - keepdims: bool = False, - **kwargs, -) -> ndarray: ... -def clip( - x: ndarray, - /, - min: int | float | ndarray | None = None, - max: int | float | ndarray | None = None, - *, - xp, - out: ndarray | None = None, -) -> ndarray: ... -def permute_dims(x: ndarray, /, axes: tuple[int, ...], xp) -> ndarray: ... -def reshape(x: ndarray, /, shape: tuple[int, ...], xp, copy: bool | None = None, **kwargs) -> ndarray: ... -def argsort(x: ndarray, /, xp, *, axis: int = -1, descending: bool = False, stable: bool = True, **kwargs) -> ndarray: ... -def sort(x: ndarray, /, xp, *, axis: int = -1, descending: bool = False, stable: bool = True, **kwargs) -> ndarray: ... -def nonzero(x: ndarray, /, xp, **kwargs) -> tuple[ndarray, ...]: ... -def sum( - x: ndarray, /, xp, *, axis: int | tuple[int, ...] | None = None, dtype: Dtype | None = None, keepdims: bool = False, **kwargs -) -> ndarray: ... -def prod( - x: ndarray, /, xp, *, axis: int | tuple[int, ...] | None = None, dtype: Dtype | None = None, keepdims: bool = False, **kwargs -) -> ndarray: ... -def ceil(x: ndarray, /, xp, **kwargs) -> ndarray: ... -def floor(x: ndarray, /, xp, **kwargs) -> ndarray: ... -def trunc(x: ndarray, /, xp, **kwargs) -> ndarray: ... -def matmul(x1: ndarray, x2: ndarray, /, xp, **kwargs) -> ndarray: ... -def matrix_transpose(x: ndarray, /, xp) -> ndarray: ... -def tensordot(x1: ndarray, x2: ndarray, /, xp, *, axes: int | tuple[Sequence[int], Sequence[int]] = 2, **kwargs) -> ndarray: ... -def vecdot(x1: ndarray, x2: ndarray, /, xp, *, axis: int = -1) -> ndarray: ... -def isdtype(dtype: Dtype, kind: Dtype | str | tuple[Dtype | str, ...], xp, *, _tuple: bool = True) -> bool: ... diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_fft.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_fft.pyi deleted file mode 100644 index 5f495b1c..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_fft.pyi +++ /dev/null @@ -1,63 +0,0 @@ -from collections.abc import Sequence -from typing import Literal - -from ._typing import Device as Device, ndarray as ndarray - -def fft( - x: ndarray, /, xp, *, n: int | None = None, axis: int = -1, norm: Literal["backward", "ortho", "forward"] = "backward" -) -> ndarray: ... -def ifft( - x: ndarray, /, xp, *, n: int | None = None, axis: int = -1, norm: Literal["backward", "ortho", "forward"] = "backward" -) -> ndarray: ... -def fftn( - x: ndarray, - /, - xp, - *, - s: Sequence[int] | None = None, - axes: Sequence[int] | None = None, - norm: Literal["backward", "ortho", "forward"] = "backward", -) -> ndarray: ... -def ifftn( - x: ndarray, - /, - xp, - *, - s: Sequence[int] | None = None, - axes: Sequence[int] | None = None, - norm: Literal["backward", "ortho", "forward"] = "backward", -) -> ndarray: ... -def rfft( - x: ndarray, /, xp, *, n: int | None = None, axis: int = -1, norm: Literal["backward", "ortho", "forward"] = "backward" -) -> ndarray: ... -def irfft( - x: ndarray, /, xp, *, n: int | None = None, axis: int = -1, norm: Literal["backward", "ortho", "forward"] = "backward" -) -> ndarray: ... -def rfftn( - x: ndarray, - /, - xp, - *, - s: Sequence[int] | None = None, - axes: Sequence[int] | None = None, - norm: Literal["backward", "ortho", "forward"] = "backward", -) -> ndarray: ... -def irfftn( - x: ndarray, - /, - xp, - *, - s: Sequence[int] | None = None, - axes: Sequence[int] | None = None, - norm: Literal["backward", "ortho", "forward"] = "backward", -) -> ndarray: ... -def hfft( - x: ndarray, /, xp, *, n: int | None = None, axis: int = -1, norm: Literal["backward", "ortho", "forward"] = "backward" -) -> ndarray: ... -def ihfft( - x: ndarray, /, xp, *, n: int | None = None, axis: int = -1, norm: Literal["backward", "ortho", "forward"] = "backward" -) -> ndarray: ... -def fftfreq(n: int, /, xp, *, d: float = 1.0, device: Device | None = None) -> ndarray: ... -def rfftfreq(n: int, /, xp, *, d: float = 1.0, device: Device | None = None) -> ndarray: ... -def fftshift(x: ndarray, /, xp, *, axes: int | Sequence[int] | None = None) -> ndarray: ... -def ifftshift(x: ndarray, /, xp, *, axes: int | Sequence[int] | None = None) -> ndarray: ... diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_helpers.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_helpers.pyi deleted file mode 100644 index 42cdf25a..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_helpers.pyi +++ /dev/null @@ -1,22 +0,0 @@ -from typing import Any - -from ._typing import Array as Array, Device as Device -from scipy._typing import Untyped - -def is_numpy_array(x) -> Untyped: ... -def is_cupy_array(x) -> Untyped: ... -def is_torch_array(x) -> Untyped: ... -def is_ndonnx_array(x) -> Untyped: ... -def is_dask_array(x) -> Untyped: ... -def is_jax_array(x) -> Untyped: ... -def is_pydata_sparse_array(x) -> bool: ... -def is_array_api_obj(x) -> Untyped: ... -def array_namespace(*xs, api_version: Untyped | None = None, use_compat: Untyped | None = None) -> Untyped: ... - -get_namespace = array_namespace - -class _dask_device: ... - -def device(x: Array, /) -> Device: ... -def to_device(x: Array, device: Device, /, *, stream: int | Any | None = None) -> Array: ... -def size(x) -> Untyped: ... diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_linalg.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_linalg.pyi deleted file mode 100644 index d3e663d1..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_linalg.pyi +++ /dev/null @@ -1,49 +0,0 @@ -from typing import Literal, NamedTuple - -from .._internal import get_xp as get_xp -from ._aliases import ( - isdtype as isdtype, - matmul as matmul, - matrix_transpose as matrix_transpose, - tensordot as tensordot, - vecdot as vecdot, -) -from ._typing import ndarray as ndarray -from scipy._typing import Untyped - -def cross(x1: ndarray, x2: ndarray, /, xp, *, axis: int = -1, **kwargs) -> ndarray: ... -def outer(x1: ndarray, x2: ndarray, /, xp, **kwargs) -> ndarray: ... - -class EighResult(NamedTuple): - eigenvalues: ndarray - eigenvectors: ndarray - -class QRResult(NamedTuple): - Q: ndarray - R: ndarray - -class SlogdetResult(NamedTuple): - sign: ndarray - logabsdet: ndarray - -class SVDResult(NamedTuple): - U: ndarray - S: ndarray - Vh: ndarray - -def eigh(x: ndarray, /, xp, **kwargs) -> EighResult: ... -def qr(x: ndarray, /, xp, *, mode: Literal["reduced", "complete"] = "reduced", **kwargs) -> QRResult: ... -def slogdet(x: ndarray, /, xp, **kwargs) -> SlogdetResult: ... -def svd(x: ndarray, /, xp, *, full_matrices: bool = True, **kwargs) -> SVDResult: ... -def cholesky(x: ndarray, /, xp, *, upper: bool = False, **kwargs) -> ndarray: ... -def matrix_rank(x: ndarray, /, xp, *, rtol: float | ndarray | None = None, **kwargs) -> ndarray: ... -def pinv(x: ndarray, /, xp, *, rtol: float | ndarray | None = None, **kwargs) -> ndarray: ... -def matrix_norm( - x: ndarray, /, xp, *, keepdims: bool = False, ord: int | float | Literal["fro", "nuc"] | None = "fro" -) -> ndarray: ... -def svdvals(x: ndarray, /, xp) -> ndarray | tuple[ndarray, ...]: ... -def vector_norm( - x: ndarray, /, xp, *, axis: int | tuple[int, ...] | None = None, keepdims: bool = False, ord: int | float | None = 2 -) -> ndarray: ... -def diagonal(x: ndarray, /, xp, *, offset: int = 0, **kwargs) -> ndarray: ... -def trace(x: ndarray, /, xp, *, offset: int = 0, dtype: Untyped | None = None, **kwargs) -> ndarray: ... diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_typing.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_typing.pyi deleted file mode 100644 index 7287887a..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/common/_typing.pyi +++ /dev/null @@ -1,9 +0,0 @@ -from typing import Any, Protocol, TypeAlias - -class NestedSequence(Protocol[_T_co]): - def __getitem__(self, key: int) -> _T_co | NestedSequence[_T_co]: ... - def __len__(self) -> int: ... - -SupportsBufferProtocol: TypeAlias = Any -Array: TypeAlias = Any -Device: TypeAlias = Any diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/__init__.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/__init__.pyi deleted file mode 100644 index a201c07d..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/__init__.pyi +++ /dev/null @@ -1,7 +0,0 @@ -from cupy import * -from cupy import abs as abs, max as max, min as min, round as round - -from ..common._helpers import * -from ._aliases import * - -__array_api_version__: str diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/_aliases.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/_aliases.pyi deleted file mode 100644 index 14a95ef4..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/_aliases.pyi +++ /dev/null @@ -1,71 +0,0 @@ -from .._internal import get_xp as get_xp -from ._typing import ( - Device as Device, - Dtype as Dtype, - NestedSequence as NestedSequence, - SupportsBufferProtocol as SupportsBufferProtocol, - ndarray as ndarray, -) -from scipy._typing import Untyped - -bool: Untyped -acos: Untyped -acosh: Untyped -asin: Untyped -asinh: Untyped -atan: Untyped -atan2: Untyped -atanh: Untyped -bitwise_left_shift: Untyped -bitwise_invert: Untyped -bitwise_right_shift: Untyped -concat: Untyped -pow: Untyped -arange: Untyped -empty: Untyped -empty_like: Untyped -eye: Untyped -full: Untyped -full_like: Untyped -linspace: Untyped -ones: Untyped -ones_like: Untyped -zeros: Untyped -zeros_like: Untyped -UniqueAllResult: Untyped -UniqueCountsResult: Untyped -UniqueInverseResult: Untyped -unique_all: Untyped -unique_counts: Untyped -unique_inverse: Untyped -unique_values: Untyped -astype: Untyped -std: Untyped -var: Untyped -clip: Untyped -permute_dims: Untyped -reshape: Untyped -argsort: Untyped -sort: Untyped -nonzero: Untyped -sum: Untyped -prod: Untyped -ceil: Untyped -floor: Untyped -trunc: Untyped -matmul: Untyped -matrix_transpose: Untyped -tensordot: Untyped - -def asarray( - obj: ndarray | bool | int | float | NestedSequence[bool | int | float] | SupportsBufferProtocol, - /, - *, - dtype: Dtype | None = None, - device: Device | None = None, - copy: bool | None = ..., - **kwargs, -) -> ndarray: ... - -vecdot: Untyped -isdtype: Untyped diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/_typing.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/_typing.pyi deleted file mode 100644 index 836f4432..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/_typing.pyi +++ /dev/null @@ -1,7 +0,0 @@ -import typing - -from cupy import dtype, float32, float64, int8, int16, int32, int64, ndarray as ndarray, uint8, uint16, uint32, uint64 -from cupy.cuda.device import Device as Device - -Dtype: typing.TypeAlias = dtype[int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | float32 | float64] -Dtype = dtype diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/fft.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/fft.pyi deleted file mode 100644 index 854464ee..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/fft.pyi +++ /dev/null @@ -1,20 +0,0 @@ -from cupy.fft import * - -from .._internal import get_xp as get_xp -from scipy._typing import Untyped - -fft_all: Untyped -fft: Untyped -ifft: Untyped -fftn: Untyped -ifftn: Untyped -rfft: Untyped -irfft: Untyped -rfftn: Untyped -irfftn: Untyped -hfft: Untyped -ihfft: Untyped -fftfreq: Untyped -rfftfreq: Untyped -fftshift: Untyped -ifftshift: Untyped diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/linalg.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/linalg.pyi deleted file mode 100644 index 1b7f3ddb..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/cupy/linalg.pyi +++ /dev/null @@ -1,25 +0,0 @@ -from cupy.linalg import * - -from .._internal import get_xp as get_xp -from ._aliases import matmul as matmul, matrix_transpose as matrix_transpose, tensordot as tensordot, vecdot as vecdot -from scipy._typing import Untyped - -linalg_all: Untyped -cross: Untyped -outer: Untyped -EighResult: Untyped -QRResult: Untyped -SlogdetResult: Untyped -SVDResult: Untyped -eigh: Untyped -qr: Untyped -slogdet: Untyped -svd: Untyped -cholesky: Untyped -matrix_rank: Untyped -pinv: Untyped -matrix_norm: Untyped -svdvals: Untyped -diagonal: Untyped -trace: Untyped -vector_norm: Untyped diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/__init__.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/__init__.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/__init__.pyi deleted file mode 100644 index 9f457034..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/__init__.pyi +++ /dev/null @@ -1,5 +0,0 @@ -from dask.array import * - -from ._aliases import * - -__array_api_version__: str diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/_aliases.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/_aliases.pyi deleted file mode 100644 index e2f9fe34..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/_aliases.pyi +++ /dev/null @@ -1,83 +0,0 @@ -import numpy as np -from numpy import ( - bool_ as bool, - can_cast as can_cast, - complex64 as complex64, - complex128 as complex128, - e as e, - finfo as finfo, - float32 as float32, - float64 as float64, - iinfo as iinfo, - inf as inf, - int8 as int8, - int16 as int16, - int32 as int32, - int64 as int64, - nan as nan, - newaxis as newaxis, - pi as pi, - result_type as result_type, - uint8 as uint8, - uint16 as uint16, - uint32 as uint32, - uint64 as uint64, -) - -from ..._internal import get_xp as get_xp -from ...common._typing import ( - Array as Array, - Device as Device, - Dtype as Dtype, - NestedSequence as NestedSequence, - SupportsBufferProtocol as SupportsBufferProtocol, -) -from scipy._typing import Untyped - -isdtype: Untyped -astype: Untyped -arange: Untyped -eye: Untyped -linspace: Untyped -UniqueAllResult: Untyped -UniqueCountsResult: Untyped -UniqueInverseResult: Untyped -unique_all: Untyped -unique_counts: Untyped -unique_inverse: Untyped -unique_values: Untyped -permute_dims: Untyped -std: Untyped -var: Untyped -clip: Untyped -empty: Untyped -empty_like: Untyped -full: Untyped -full_like: Untyped -ones: Untyped -ones_like: Untyped -zeros: Untyped -zeros_like: Untyped -reshape: Untyped -matrix_transpose: Untyped -vecdot: Untyped -nonzero: Untyped -sum: Untyped -prod: Untyped -ceil: Untyped -floor: Untyped -trunc: Untyped -matmul: Untyped -tensordot: Untyped - -def asarray( - obj: Array | bool | int | float | NestedSequence[bool | int | float] | SupportsBufferProtocol, - /, - *, - dtype: Dtype | None = None, - device: Device | None = None, - copy: bool | np._CopyMode | None = None, - **kwargs, -) -> Array: ... - -common_aliases: Untyped diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/linalg.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/linalg.pyi deleted file mode 100644 index 9d3cbfc6..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/dask/array/linalg.pyi +++ /dev/null @@ -1,27 +0,0 @@ -from typing import Literal - -from dask.array import matmul as matmul, outer as outer, tensordot as tensordot, trace as trace -from dask.array.linalg import * - -from ..._internal import get_xp as get_xp -from ...common._typing import Array as Array -from ._aliases import matrix_transpose as matrix_transpose, vecdot as vecdot -from scipy._typing import Untyped - -linalg_all: Untyped -EighResult: Untyped -QRResult: Untyped -SlogdetResult: Untyped -SVDResult: Untyped - -def qr(x: Array, mode: Literal["reduced", "complete"] = "reduced", **kwargs) -> QRResult: ... - -cholesky: Untyped -matrix_rank: Untyped -matrix_norm: Untyped - -def svd(x: Array, full_matrices: bool = True, **kwargs) -> SVDResult: ... -def svdvals(x: Array) -> Array: ... - -vector_norm: Untyped -diagonal: Untyped diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/__init__.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/__init__.pyi deleted file mode 100644 index 13b6b9a3..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/__init__.pyi +++ /dev/null @@ -1,8 +0,0 @@ -from numpy import * -from numpy import abs as abs, max as max, min as min, round as round - -from ..common._helpers import * -from ._aliases import * -from .linalg import matrix_transpose as matrix_transpose, vecdot as vecdot - -__array_api_version__: str diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/_aliases.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/_aliases.pyi deleted file mode 100644 index d4c8b0b1..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/_aliases.pyi +++ /dev/null @@ -1,73 +0,0 @@ -import numpy as np - -from .._internal import get_xp as get_xp -from ._typing import ( - Device as Device, - Dtype as Dtype, - NestedSequence as NestedSequence, - SupportsBufferProtocol as SupportsBufferProtocol, - ndarray as ndarray, -) -from scipy._typing import Untyped - -bool: Untyped -acos: Untyped -acosh: Untyped -asin: Untyped -asinh: Untyped -atan: Untyped -atan2: Untyped -atanh: Untyped -bitwise_left_shift: Untyped -bitwise_invert: Untyped -bitwise_right_shift: Untyped -concat: Untyped -pow: Untyped -arange: Untyped -empty: Untyped -empty_like: Untyped -eye: Untyped -full: Untyped -full_like: Untyped -linspace: Untyped -ones: Untyped -ones_like: Untyped -zeros: Untyped -zeros_like: Untyped -UniqueAllResult: Untyped -UniqueCountsResult: Untyped -UniqueInverseResult: Untyped -unique_all: Untyped -unique_counts: Untyped -unique_inverse: Untyped -unique_values: Untyped -astype: Untyped -std: Untyped -var: Untyped -clip: Untyped -permute_dims: Untyped -reshape: Untyped -argsort: Untyped -sort: Untyped -nonzero: Untyped -sum: Untyped -prod: Untyped -ceil: Untyped -floor: Untyped -trunc: Untyped -matmul: Untyped -matrix_transpose: Untyped -tensordot: Untyped - -def asarray( - obj: ndarray | bool | int | float | NestedSequence[bool | int | float] | SupportsBufferProtocol, - /, - *, - dtype: Dtype | None = None, - device: Device | None = None, - copy: bool | np._CopyMode | None = None, - **kwargs, -) -> ndarray: ... - -vecdot: Untyped -isdtype: Untyped diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/_typing.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/_typing.pyi deleted file mode 100644 index 32c71d71..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/_typing.pyi +++ /dev/null @@ -1,9 +0,0 @@ -import typing - -from numpy import dtype, float32, float64, int8, int16, int32, int64, ndarray as ndarray, uint8, uint16, uint32, uint64 - -from scipy._typing import Untyped - -Device: Untyped -Dtype: typing.TypeAlias = dtype[int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | float32 | float64] -Dtype = dtype diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/fft.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/fft.pyi deleted file mode 100644 index 9edc77fe..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/fft.pyi +++ /dev/null @@ -1,19 +0,0 @@ -from numpy.fft import * - -from .._internal import get_xp as get_xp -from scipy._typing import Untyped - -fft: Untyped -ifft: Untyped -fftn: Untyped -ifftn: Untyped -rfft: Untyped -irfft: Untyped -rfftn: Untyped -irfftn: Untyped -hfft: Untyped -ihfft: Untyped -fftfreq: Untyped -rfftfreq: Untyped -fftshift: Untyped -ifftshift: Untyped diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/linalg.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/linalg.pyi deleted file mode 100644 index c25a4452..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/numpy/linalg.pyi +++ /dev/null @@ -1,28 +0,0 @@ -import numpy as np -from numpy.linalg import * - -from .._internal import get_xp as get_xp -from ._aliases import matmul as matmul, matrix_transpose as matrix_transpose, tensordot as tensordot, vecdot as vecdot -from scipy._typing import Untyped - -cross: Untyped -outer: Untyped -EighResult: Untyped -QRResult: Untyped -SlogdetResult: Untyped -SVDResult: Untyped -eigh: Untyped -qr: Untyped -slogdet: Untyped -svd: Untyped -cholesky: Untyped -matrix_rank: Untyped -pinv: Untyped -matrix_norm: Untyped -svdvals: Untyped -diagonal: Untyped -trace: Untyped - -def solve(x1: np.ndarray, x2: np.ndarray, /) -> np.ndarray: ... - -vector_norm: Untyped diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/__init__.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/__init__.pyi deleted file mode 100644 index b7d88cb9..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/__init__.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from torch import * - -from ..common._helpers import * -from ._aliases import * - -__array_api_version__: str diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/_aliases.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/_aliases.pyi deleted file mode 100644 index 2dc32bee..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/_aliases.pyi +++ /dev/null @@ -1,124 +0,0 @@ -from collections.abc import Sequence - -from torch import dtype as Dtype - -from .._internal import get_xp as get_xp -from ..common._aliases import ( - UniqueAllResult as UniqueAllResult, - UniqueCountsResult as UniqueCountsResult, - UniqueInverseResult as UniqueInverseResult, -) -from ..common._typing import Device as Device -from scipy._typing import Untyped - -array: Untyped - -def result_type(*arrays_and_dtypes: array | Dtype) -> Dtype: ... -def can_cast(from_: Dtype | array, to: Dtype, /) -> bool: ... - -bitwise_invert: Untyped -newaxis: Untyped -add: Untyped -atan2: Untyped -bitwise_and: Untyped -bitwise_left_shift: Untyped -bitwise_or: Untyped -bitwise_right_shift: Untyped -bitwise_xor: Untyped -copysign: Untyped -divide: Untyped -equal: Untyped -floor_divide: Untyped -greater: Untyped -greater_equal: Untyped -less: Untyped -less_equal: Untyped -logaddexp: Untyped -multiply: Untyped -not_equal: Untyped -pow: Untyped -remainder: Untyped -subtract: Untyped - -def max(x: array, /, *, axis: int | tuple[int, ...] | None = None, keepdims: bool = False) -> array: ... -def min(x: array, /, *, axis: int | tuple[int, ...] | None = None, keepdims: bool = False) -> array: ... - -clip: Untyped - -def sort(x: array, /, *, axis: int = -1, descending: bool = False, stable: bool = True, **kwargs) -> array: ... -def prod( - x: array, /, *, axis: int | tuple[int, ...] | None = None, dtype: Dtype | None = None, keepdims: bool = False, **kwargs -) -> array: ... -def sum( - x: array, /, *, axis: int | tuple[int, ...] | None = None, dtype: Dtype | None = None, keepdims: bool = False, **kwargs -) -> array: ... -def any(x: array, /, *, axis: int | tuple[int, ...] | None = None, keepdims: bool = False, **kwargs) -> array: ... -def all(x: array, /, *, axis: int | tuple[int, ...] | None = None, keepdims: bool = False, **kwargs) -> array: ... -def mean(x: array, /, *, axis: int | tuple[int, ...] | None = None, keepdims: bool = False, **kwargs) -> array: ... -def std( - x: array, /, *, axis: int | tuple[int, ...] | None = None, correction: int | float = 0.0, keepdims: bool = False, **kwargs -) -> array: ... -def var( - x: array, /, *, axis: int | tuple[int, ...] | None = None, correction: int | float = 0.0, keepdims: bool = False, **kwargs -) -> array: ... -def concat(arrays: tuple[array, ...] | list[array], /, *, axis: int | None = 0, **kwargs) -> array: ... -def squeeze(x: array, /, axis: int | tuple[int, ...]) -> array: ... -def broadcast_to(x: array, /, shape: tuple[int, ...], **kwargs) -> array: ... -def permute_dims(x: array, /, axes: tuple[int, ...]) -> array: ... -def flip(x: array, /, *, axis: int | tuple[int, ...] | None = None, **kwargs) -> array: ... -def roll(x: array, /, shift: int | tuple[int, ...], *, axis: int | tuple[int, ...] | None = None, **kwargs) -> array: ... -def nonzero(x: array, /, **kwargs) -> tuple[array, ...]: ... -def where(condition: array, x1: array, x2: array, /) -> array: ... -def reshape(x: array, /, shape: tuple[int, ...], copy: bool | None = None, **kwargs) -> array: ... -def arange( - start: int | float, - /, - stop: int | float | None = None, - step: int | float = 1, - *, - dtype: Dtype | None = None, - device: Device | None = None, - **kwargs, -) -> array: ... -def eye( - n_rows: int, n_cols: int | None = None, /, *, k: int = 0, dtype: Dtype | None = None, device: Device | None = None, **kwargs -) -> array: ... -def linspace( - start: int | float, - stop: int | float, - /, - num: int, - *, - dtype: Dtype | None = None, - device: Device | None = None, - endpoint: bool = True, - **kwargs, -) -> array: ... -def full( - shape: int | tuple[int, ...], - fill_value: bool | int | float | complex, - *, - dtype: Dtype | None = None, - device: Device | None = None, - **kwargs, -) -> array: ... -def ones(shape: int | tuple[int, ...], *, dtype: Dtype | None = None, device: Device | None = None, **kwargs) -> array: ... -def zeros(shape: int | tuple[int, ...], *, dtype: Dtype | None = None, device: Device | None = None, **kwargs) -> array: ... -def empty(shape: int | tuple[int, ...], *, dtype: Dtype | None = None, device: Device | None = None, **kwargs) -> array: ... -def tril(x: array, /, *, k: int = 0) -> array: ... -def triu(x: array, /, *, k: int = 0) -> array: ... -def expand_dims(x: array, /, *, axis: int = 0) -> array: ... -def astype(x: array, dtype: Dtype, /, *, copy: bool = True) -> array: ... -def broadcast_arrays(*arrays: array) -> list[array]: ... -def unique_all(x: array) -> UniqueAllResult: ... -def unique_counts(x: array) -> UniqueCountsResult: ... -def unique_inverse(x: array) -> UniqueInverseResult: ... -def unique_values(x: array) -> array: ... -def matmul(x1: array, x2: array, /, **kwargs) -> array: ... - -matrix_transpose: Untyped - -def vecdot(x1: array, x2: array, /, *, axis: int = -1) -> array: ... -def tensordot(x1: array, x2: array, /, *, axes: int | tuple[Sequence[int], Sequence[int]] = 2, **kwargs) -> array: ... -def isdtype(dtype: Dtype, kind: Dtype | str | tuple[Dtype | str, ...], *, _tuple: bool = True) -> bool: ... -def take(x: array, indices: array, /, *, axis: int | None = None, **kwargs) -> array: ... diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/fft.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/fft.pyi deleted file mode 100644 index db4249c0..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/fft.pyi +++ /dev/null @@ -1,47 +0,0 @@ -from collections.abc import Sequence -from typing import Literal - -from torch.fft import * - -from scipy._typing import Untyped - -array: Untyped - -def fftn( - x: array, - /, - *, - s: Sequence[int] | None = None, - axes: Sequence[int] | None = None, - norm: Literal["backward", "ortho", "forward"] = "backward", - **kwargs, -) -> array: ... -def ifftn( - x: array, - /, - *, - s: Sequence[int] | None = None, - axes: Sequence[int] | None = None, - norm: Literal["backward", "ortho", "forward"] = "backward", - **kwargs, -) -> array: ... -def rfftn( - x: array, - /, - *, - s: Sequence[int] | None = None, - axes: Sequence[int] | None = None, - norm: Literal["backward", "ortho", "forward"] = "backward", - **kwargs, -) -> array: ... -def irfftn( - x: array, - /, - *, - s: Sequence[int] | None = None, - axes: Sequence[int] | None = None, - norm: Literal["backward", "ortho", "forward"] = "backward", - **kwargs, -) -> array: ... -def fftshift(x: array, /, *, axes: int | Sequence[int] | None = None, **kwargs) -> array: ... -def ifftshift(x: array, /, *, axes: int | Sequence[int] | None = None, **kwargs) -> array: ... diff --git a/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/linalg.pyi b/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/linalg.pyi deleted file mode 100644 index bb1a4cc3..00000000 --- a/scipy-stubs/_lib/array_api_compat/array_api_compat/torch/linalg.pyi +++ /dev/null @@ -1,25 +0,0 @@ -from typing import Literal - -from torch import dtype as Dtype, outer as outer -from torch.linalg import * - -from ._aliases import matmul as matmul, matrix_transpose as matrix_transpose, sum as sum, tensordot as tensordot -from scipy._typing import Untyped - -array: Untyped -inf: Untyped -linalg_all: Untyped - -def cross(x1: array, x2: array, /, *, axis: int = -1) -> array: ... -def vecdot(x1: array, x2: array, /, *, axis: int = -1, **kwargs) -> array: ... -def solve(x1: array, x2: array, /, **kwargs) -> array: ... -def trace(x: array, /, *, offset: int = 0, dtype: Dtype | None = None) -> array: ... -def vector_norm( - x: array, - /, - *, - axis: int | tuple[int, ...] | None = None, - keepdims: bool = False, - ord: int | float | Literal[inf, None] = 2, - **kwargs, -) -> array: ... diff --git a/scipy-stubs/_lib/array_api_compat/docs/conf.pyi b/scipy-stubs/_lib/array_api_compat/docs/conf.pyi deleted file mode 100644 index c110aa10..00000000 --- a/scipy-stubs/_lib/array_api_compat/docs/conf.pyi +++ /dev/null @@ -1,22 +0,0 @@ -from scipy._typing import Untyped - -project: str -copyright: str -author: str -release: Untyped -extensions: Untyped -intersphinx_mapping: Untyped -intersphinx_disabled_reftypes: Untyped -templates_path: Untyped -exclude_patterns: Untyped -myst_enable_extensions: Untyped -napoleon_use_rtype: bool -napoleon_use_param: bool -nitpicky: bool -nitpick_ignore: Untyped -default_role: str -html_theme: str -html_static_path: Untyped -html_css_files: Untyped -html_theme_options: Untyped -html_favicon: str diff --git a/scipy-stubs/_lib/array_api_compat/setup.pyi b/scipy-stubs/_lib/array_api_compat/setup.pyi deleted file mode 100644 index 3c6d29ea..00000000 --- a/scipy-stubs/_lib/array_api_compat/setup.pyi +++ /dev/null @@ -1,3 +0,0 @@ -from scipy._typing import Untyped - -long_description: Untyped diff --git a/scipy-stubs/_lib/array_api_compat/tests/__init__.pyi b/scipy-stubs/_lib/array_api_compat/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/_lib/array_api_compat/tests/_helpers.pyi b/scipy-stubs/_lib/array_api_compat/tests/_helpers.pyi deleted file mode 100644 index eeba392a..00000000 --- a/scipy-stubs/_lib/array_api_compat/tests/_helpers.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from scipy._typing import Untyped - -wrapped_libraries: Untyped -all_libraries: Untyped - -def import_(library, wrapper: bool = False) -> Untyped: ... diff --git a/scipy-stubs/_lib/array_api_compat/tests/test_all.pyi b/scipy-stubs/_lib/array_api_compat/tests/test_all.pyi deleted file mode 100644 index 7e06182b..00000000 --- a/scipy-stubs/_lib/array_api_compat/tests/test_all.pyi +++ /dev/null @@ -1,3 +0,0 @@ -from ._helpers import import_ as import_, wrapped_libraries as wrapped_libraries - -def test_all(library): ... diff --git a/scipy-stubs/_lib/array_api_compat/tests/test_array_namespace.pyi b/scipy-stubs/_lib/array_api_compat/tests/test_array_namespace.pyi deleted file mode 100644 index ebec43df..00000000 --- a/scipy-stubs/_lib/array_api_compat/tests/test_array_namespace.pyi +++ /dev/null @@ -1,9 +0,0 @@ -from ._helpers import all_libraries as all_libraries, import_ as import_, wrapped_libraries as wrapped_libraries -from scipy._typing import Untyped - -def test_array_namespace(library, api_version, use_compat) -> Untyped: ... -def test_jax_zero_gradient(): ... -def test_array_namespace_errors() -> Untyped: ... -def test_array_namespace_errors_torch() -> Untyped: ... -def test_api_version() -> Untyped: ... -def test_get_namespace(): ... diff --git a/scipy-stubs/_lib/array_api_compat/tests/test_common.pyi b/scipy-stubs/_lib/array_api_compat/tests/test_common.pyi deleted file mode 100644 index f46a2411..00000000 --- a/scipy-stubs/_lib/array_api_compat/tests/test_common.pyi +++ /dev/null @@ -1,19 +0,0 @@ -from array_api_compat import ( - is_cupy_array as is_cupy_array, - is_dask_array as is_dask_array, - is_jax_array as is_jax_array, - is_numpy_array as is_numpy_array, - is_pydata_sparse_array as is_pydata_sparse_array, - is_torch_array as is_torch_array, -) - -from ._helpers import all_libraries as all_libraries, import_ as import_, wrapped_libraries as wrapped_libraries -from scipy._typing import Untyped - -is_functions: Untyped - -def test_is_xp_array(library, func): ... -def test_device(library): ... -def test_to_device_host(library): ... -def test_asarray_cross_library(source_library, target_library, request): ... -def test_asarray_copy(library) -> Untyped: ... diff --git a/scipy-stubs/_lib/array_api_compat/tests/test_isdtype.pyi b/scipy-stubs/_lib/array_api_compat/tests/test_isdtype.pyi deleted file mode 100644 index b124ec14..00000000 --- a/scipy-stubs/_lib/array_api_compat/tests/test_isdtype.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from ._helpers import import_ as import_, wrapped_libraries as wrapped_libraries -from scipy._typing import Untyped - -dtype_categories: Untyped - -def isdtype_(dtype_, kind) -> Untyped: ... -def test_isdtype_spec_dtypes(library): ... - -additional_dtypes: Untyped - -def test_isdtype_additional_dtypes(library, dtype_): ... diff --git a/scipy-stubs/_lib/array_api_compat/tests/test_no_dependencies.pyi b/scipy-stubs/_lib/array_api_compat/tests/test_no_dependencies.pyi deleted file mode 100644 index 48d316e1..00000000 --- a/scipy-stubs/_lib/array_api_compat/tests/test_no_dependencies.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from scipy._typing import Untyped - -class Array: - def __array_namespace__(self, api_version: Untyped | None = None) -> Untyped: ... - -def test_numpy_dependency(library): ... diff --git a/scipy-stubs/_lib/array_api_compat/tests/test_vendoring.pyi b/scipy-stubs/_lib/array_api_compat/tests/test_vendoring.pyi deleted file mode 100644 index b34dbc79..00000000 --- a/scipy-stubs/_lib/array_api_compat/tests/test_vendoring.pyi +++ /dev/null @@ -1,4 +0,0 @@ -def test_vendoring_numpy(): ... -def test_vendoring_cupy(): ... -def test_vendoring_torch(): ... -def test_vendoring_dask(): ... diff --git a/scipy-stubs/_lib/array_api_compat/vendor_test/__init__.pyi b/scipy-stubs/_lib/array_api_compat/vendor_test/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/_lib/array_api_compat/vendor_test/uses_cupy.pyi b/scipy-stubs/_lib/array_api_compat/vendor_test/uses_cupy.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/_lib/array_api_compat/vendor_test/uses_dask.pyi b/scipy-stubs/_lib/array_api_compat/vendor_test/uses_dask.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/_lib/array_api_compat/vendor_test/uses_numpy.pyi b/scipy-stubs/_lib/array_api_compat/vendor_test/uses_numpy.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/_lib/array_api_compat/vendor_test/uses_torch.pyi b/scipy-stubs/_lib/array_api_compat/vendor_test/uses_torch.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/__init__.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/__init__.pyi deleted file mode 100644 index d04a6cb9..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/__init__.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from .main import minimize as minimize -from .utils import show_versions as show_versions - -__version__: str diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/framework.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/framework.pyi deleted file mode 100644 index e4902c79..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/framework.pyi +++ /dev/null @@ -1,75 +0,0 @@ -from .models import Models as Models, Quadratic as Quadratic -from .settings import Constants as Constants, Options as Options -from .subsolvers import ( - cauchy_geometry as cauchy_geometry, - constrained_tangential_byrd_omojokun as constrained_tangential_byrd_omojokun, - normal_byrd_omojokun as normal_byrd_omojokun, - spider_geometry as spider_geometry, - tangential_byrd_omojokun as tangential_byrd_omojokun, -) -from .subsolvers.optim import qr_tangential_byrd_omojokun as qr_tangential_byrd_omojokun -from .utils import get_arrays_tol as get_arrays_tol -from scipy._typing import Untyped -from scipy.optimize import lsq_linear as lsq_linear - -TINY: Untyped -EPS: Untyped - -class TrustRegion: - def __init__(self, pb, options, constants) -> None: ... - @property - def n(self) -> Untyped: ... - @property - def m_linear_ub(self) -> Untyped: ... - @property - def m_linear_eq(self) -> Untyped: ... - @property - def m_nonlinear_ub(self) -> Untyped: ... - @property - def m_nonlinear_eq(self) -> Untyped: ... - @property - def radius(self) -> Untyped: ... - @radius.setter - def radius(self, radius): ... - @property - def resolution(self) -> Untyped: ... - @resolution.setter - def resolution(self, resolution): ... - @property - def penalty(self) -> Untyped: ... - @property - def models(self) -> Untyped: ... - @property - def best_index(self) -> Untyped: ... - @property - def x_best(self) -> Untyped: ... - @property - def fun_best(self) -> Untyped: ... - @property - def cub_best(self) -> Untyped: ... - @property - def ceq_best(self) -> Untyped: ... - def lag_model(self, x) -> Untyped: ... - def lag_model_grad(self, x) -> Untyped: ... - def lag_model_hess(self) -> Untyped: ... - def lag_model_hess_prod(self, v) -> Untyped: ... - def lag_model_curv(self, v) -> Untyped: ... - def sqp_fun(self, step) -> Untyped: ... - def sqp_cub(self, step) -> Untyped: ... - def sqp_ceq(self, step) -> Untyped: ... - def merit( - self, x, fun_val: Untyped | None = None, cub_val: Untyped | None = None, ceq_val: Untyped | None = None - ) -> Untyped: ... - def get_constraint_linearizations(self, x) -> Untyped: ... - def get_trust_region_step(self, options) -> Untyped: ... - def get_geometry_step(self, k_new, options) -> Untyped: ... - def get_second_order_correction_step(self, step, options) -> Untyped: ... - def get_reduction_ratio(self, step, fun_val, cub_val, ceq_val) -> Untyped: ... - def increase_penalty(self, step) -> Untyped: ... - def decrease_penalty(self): ... - def set_best_index(self): ... - def get_index_to_remove(self, x_new: Untyped | None = None) -> Untyped: ... - def update_radius(self, step, ratio): ... - def enhance_resolution(self, options): ... - def shift_x_base(self, options): ... - def set_multipliers(self, x): ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/main.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/main.pyi deleted file mode 100644 index 98e189dc..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/main.pyi +++ /dev/null @@ -1,41 +0,0 @@ -from .framework import TrustRegion as TrustRegion -from .problem import ( - BoundConstraints as BoundConstraints, - LinearConstraints as LinearConstraints, - NonlinearConstraints as NonlinearConstraints, - ObjectiveFunction as ObjectiveFunction, - Problem as Problem, -) -from .settings import ( - DEFAULT_CONSTANTS as DEFAULT_CONSTANTS, - DEFAULT_OPTIONS as DEFAULT_OPTIONS, - PRINT_OPTIONS as PRINT_OPTIONS, - Constants as Constants, - ExitStatus as ExitStatus, - Options as Options, -) -from .utils import ( - CallbackSuccess as CallbackSuccess, - FeasibleSuccess as FeasibleSuccess, - MaxEvalError as MaxEvalError, - TargetSuccess as TargetSuccess, - exact_1d_array as exact_1d_array, -) -from scipy._typing import Untyped -from scipy.optimize import ( - Bounds as Bounds, - LinearConstraint as LinearConstraint, - NonlinearConstraint as NonlinearConstraint, - OptimizeResult as OptimizeResult, -) - -def minimize( - fun, - x0, - args=(), - bounds: Untyped | None = None, - constraints=(), - callback: Untyped | None = None, - options: Untyped | None = None, - **kwargs, -) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/models.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/models.pyi deleted file mode 100644 index bcc9c378..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/models.pyi +++ /dev/null @@ -1,79 +0,0 @@ -from .settings import Options as Options -from .utils import FeasibleSuccess as FeasibleSuccess, MaxEvalError as MaxEvalError, TargetSuccess as TargetSuccess -from scipy._typing import Untyped -from scipy.linalg import eigh as eigh - -EPS: Untyped - -class Interpolation: - def __init__(self, pb, options) -> None: ... - @property - def n(self) -> Untyped: ... - @property - def npt(self) -> Untyped: ... - @property - def xpt(self) -> Untyped: ... - @xpt.setter - def xpt(self, xpt): ... - @property - def x_base(self) -> Untyped: ... - @x_base.setter - def x_base(self, x_base): ... - def point(self, k) -> Untyped: ... - -def build_system(interpolation) -> Untyped: ... - -class Quadratic: - def __init__(self, interpolation, values, debug) -> None: ... - def __call__(self, x, interpolation) -> Untyped: ... - @property - def n(self) -> Untyped: ... - @property - def npt(self) -> Untyped: ... - def grad(self, x, interpolation) -> Untyped: ... - def hess(self, interpolation) -> Untyped: ... - def hess_prod(self, v, interpolation) -> Untyped: ... - def curv(self, v, interpolation) -> Untyped: ... - def update(self, interpolation, k_new, dir_old, values_diff) -> Untyped: ... - def shift_x_base(self, interpolation, new_x_base): ... - @staticmethod - def solve_systems(interpolation, rhs) -> Untyped: ... - -class Models: - def __init__(self, pb, options) -> None: ... - @property - def n(self) -> Untyped: ... - @property - def npt(self) -> Untyped: ... - @property - def m_nonlinear_ub(self) -> Untyped: ... - @property - def m_nonlinear_eq(self) -> Untyped: ... - @property - def interpolation(self) -> Untyped: ... - @property - def fun_val(self) -> Untyped: ... - @property - def cub_val(self) -> Untyped: ... - @property - def ceq_val(self) -> Untyped: ... - def fun(self, x) -> Untyped: ... - def fun_grad(self, x) -> Untyped: ... - def fun_hess(self) -> Untyped: ... - def fun_hess_prod(self, v) -> Untyped: ... - def fun_curv(self, v) -> Untyped: ... - def fun_alt_grad(self, x) -> Untyped: ... - def cub(self, x, mask: Untyped | None = None) -> Untyped: ... - def cub_grad(self, x, mask: Untyped | None = None) -> Untyped: ... - def cub_hess(self, mask: Untyped | None = None) -> Untyped: ... - def cub_hess_prod(self, v, mask: Untyped | None = None) -> Untyped: ... - def cub_curv(self, v, mask: Untyped | None = None) -> Untyped: ... - def ceq(self, x, mask: Untyped | None = None) -> Untyped: ... - def ceq_grad(self, x, mask: Untyped | None = None) -> Untyped: ... - def ceq_hess(self, mask: Untyped | None = None) -> Untyped: ... - def ceq_hess_prod(self, v, mask: Untyped | None = None) -> Untyped: ... - def ceq_curv(self, v, mask: Untyped | None = None) -> Untyped: ... - def reset_models(self): ... - def update_interpolation(self, k_new, x_new, fun_val, cub_val, ceq_val) -> Untyped: ... - def determinants(self, x_new, k_new: Untyped | None = None) -> Untyped: ... - def shift_x_base(self, new_x_base, options): ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/problem.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/problem.pyi deleted file mode 100644 index 06d8fcc8..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/problem.pyi +++ /dev/null @@ -1,116 +0,0 @@ -from .settings import BARRIER as BARRIER, PRINT_OPTIONS as PRINT_OPTIONS -from .utils import CallbackSuccess as CallbackSuccess, exact_1d_array as exact_1d_array, get_arrays_tol as get_arrays_tol -from scipy._typing import Untyped -from scipy.optimize import ( - Bounds as Bounds, - LinearConstraint as LinearConstraint, - NonlinearConstraint as NonlinearConstraint, - OptimizeResult as OptimizeResult, -) -from scipy.optimize._constraints import PreparedConstraint as PreparedConstraint - -class ObjectiveFunction: - def __init__(self, fun, verbose, debug, *args) -> None: ... - def __call__(self, x) -> Untyped: ... - @property - def n_eval(self) -> Untyped: ... - @property - def name(self) -> Untyped: ... - -class BoundConstraints: - is_feasible: Untyped - m: Untyped - pcs: Untyped - def __init__(self, bounds) -> None: ... - @property - def xl(self) -> Untyped: ... - @property - def xu(self) -> Untyped: ... - def maxcv(self, x) -> Untyped: ... - def violation(self, x) -> Untyped: ... - def project(self, x) -> Untyped: ... - -class LinearConstraints: - pcs: Untyped - def __init__(self, constraints, n, debug) -> None: ... - @property - def a_ub(self) -> Untyped: ... - @property - def b_ub(self) -> Untyped: ... - @property - def a_eq(self) -> Untyped: ... - @property - def b_eq(self) -> Untyped: ... - @property - def m_ub(self) -> Untyped: ... - @property - def m_eq(self) -> Untyped: ... - def maxcv(self, x) -> Untyped: ... - def violation(self, x) -> Untyped: ... - -class NonlinearConstraints: - pcs: Untyped - def __init__(self, constraints, verbose, debug) -> None: ... - def __call__(self, x) -> Untyped: ... - @property - def m_ub(self) -> Untyped: ... - @property - def m_eq(self) -> Untyped: ... - @property - def n_eval(self) -> Untyped: ... - def maxcv(self, x, cub_val: Untyped | None = None, ceq_val: Untyped | None = None) -> Untyped: ... - def violation(self, x, cub_val: Untyped | None = None, ceq_val: Untyped | None = None) -> Untyped: ... - -class Problem: - def __init__( - self, - obj, - x0, - bounds, - linear, - nonlinear, - callback, - feasibility_tol, - scale, - store_history, - history_size, - filter_size, - debug, - ) -> None: ... - def __call__(self, x) -> Untyped: ... - @property - def n(self) -> Untyped: ... - @property - def n_orig(self) -> Untyped: ... - @property - def x0(self) -> Untyped: ... - @property - def n_eval(self) -> Untyped: ... - @property - def fun_name(self) -> Untyped: ... - @property - def bounds(self) -> Untyped: ... - @property - def linear(self) -> Untyped: ... - @property - def m_bounds(self) -> Untyped: ... - @property - def m_linear_ub(self) -> Untyped: ... - @property - def m_linear_eq(self) -> Untyped: ... - @property - def m_nonlinear_ub(self) -> Untyped: ... - @property - def m_nonlinear_eq(self) -> Untyped: ... - @property - def fun_history(self) -> Untyped: ... - @property - def maxcv_history(self) -> Untyped: ... - @property - def type(self) -> Untyped: ... - @property - def is_feasibility(self) -> Untyped: ... - def build_x(self, x) -> Untyped: ... - def maxcv(self, x, cub_val: Untyped | None = None, ceq_val: Untyped | None = None) -> Untyped: ... - def violation(self, x, cub_val: Untyped | None = None, ceq_val: Untyped | None = None) -> Untyped: ... - def best_eval(self, penalty) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/settings.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/settings.pyi deleted file mode 100644 index 040ab7b9..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/settings.pyi +++ /dev/null @@ -1,56 +0,0 @@ -from enum import Enum - -from scipy._typing import Untyped - -class ExitStatus(Enum): - RADIUS_SUCCESS: int - TARGET_SUCCESS: int - FIXED_SUCCESS: int - CALLBACK_SUCCESS: int - FEASIBLE_SUCCESS: int - MAX_EVAL_WARNING: int - MAX_ITER_WARNING: int - INFEASIBLE_ERROR: int - LINALG_ERROR: int - -class Options(str, Enum): - DEBUG: str - FEASIBILITY_TOL: str - FILTER_SIZE: str - HISTORY_SIZE: str - MAX_EVAL: str - MAX_ITER: str - NPT: str - RHOBEG: str - RHOEND: str - SCALE: str - STORE_HISTORY: str - TARGET: str - VERBOSE: str - -class Constants(str, Enum): - DECREASE_RADIUS_FACTOR: str - INCREASE_RADIUS_FACTOR: str - INCREASE_RADIUS_THRESHOLD: str - DECREASE_RADIUS_THRESHOLD: str - DECREASE_RESOLUTION_FACTOR: str - LARGE_RESOLUTION_THRESHOLD: str - MODERATE_RESOLUTION_THRESHOLD: str - LOW_RATIO: str - HIGH_RATIO: str - VERY_LOW_RATIO: str - PENALTY_INCREASE_THRESHOLD: str - PENALTY_INCREASE_FACTOR: str - SHORT_STEP_THRESHOLD: str - LOW_RADIUS_FACTOR: str - BYRD_OMOJOKUN_FACTOR: str - THRESHOLD_RATIO_CONSTRAINTS: str - LARGE_SHIFT_FACTOR: str - LARGE_GRADIENT_FACTOR: str - RESOLUTION_FACTOR: str - IMPROVE_TCG: str - -DEFAULT_OPTIONS: Untyped -DEFAULT_CONSTANTS: Untyped -PRINT_OPTIONS: Untyped -BARRIER: Untyped diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/__init__.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/__init__.pyi deleted file mode 100644 index 2b129d0b..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/__init__.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from .geometry import cauchy_geometry as cauchy_geometry, spider_geometry as spider_geometry -from .optim import ( - constrained_tangential_byrd_omojokun as constrained_tangential_byrd_omojokun, - normal_byrd_omojokun as normal_byrd_omojokun, - tangential_byrd_omojokun as tangential_byrd_omojokun, -) diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/geometry.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/geometry.pyi deleted file mode 100644 index 7574e9c0..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/geometry.pyi +++ /dev/null @@ -1,7 +0,0 @@ -from ..utils import get_arrays_tol as get_arrays_tol -from scipy._typing import Untyped - -TINY: Untyped - -def cauchy_geometry(const, grad, curv, xl, xu, delta, debug) -> Untyped: ... -def spider_geometry(const, grad, curv, xpt, xl, xu, delta, debug) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/optim.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/optim.pyi deleted file mode 100644 index 661e9cc2..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/subsolvers/optim.pyi +++ /dev/null @@ -1,12 +0,0 @@ -from ..utils import get_arrays_tol as get_arrays_tol -from scipy._typing import Untyped -from scipy.linalg import qr as qr - -TINY: Untyped -EPS: Untyped - -def tangential_byrd_omojokun(grad, hess_prod, xl, xu, delta, debug, **kwargs) -> Untyped: ... -def constrained_tangential_byrd_omojokun(grad, hess_prod, xl, xu, aub, bub, aeq, delta, debug, **kwargs) -> Untyped: ... -def normal_byrd_omojokun(aub, bub, aeq, beq, xl, xu, delta, debug, **kwargs) -> Untyped: ... -def qr_tangential_byrd_omojokun(aub, aeq, free_xl, free_xu, free_ub) -> Untyped: ... -def qr_normal_byrd_omojokun(aub, free_xl, free_xu, free_slack, free_ub) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/tests/__init__.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/tests/test_main.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/tests/test_main.pyi deleted file mode 100644 index cc301d26..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/tests/test_main.pyi +++ /dev/null @@ -1,28 +0,0 @@ -from ..main import minimize as minimize -from scipy._typing import Untyped -from scipy.optimize import Bounds as Bounds, LinearConstraint as LinearConstraint, NonlinearConstraint as NonlinearConstraint -from scipy.optimize._minimize import standardize_constraints as standardize_constraints - -class TestMinimize: - x0: Untyped - options: Untyped - def setup_method(self): ... - @staticmethod - def fun(x, c: float = 1.0) -> Untyped: ... - @staticmethod - def con(x) -> Untyped: ... - def test_simple(self): ... - def test_bounds(self): ... - def test_minimize_linear_constraints(self): ... - def test_nonlinear_constraints(self): ... - def test_minimize_args(self): ... - n_eval: int - def test_callback(self): ... - def test_infeasible_bounds(self): ... - def test_fixed(self): ... - def test_target(self): ... - def test_max_eval(self): ... - def test_max_iter(self): ... - def test_feasibility_problem(self): ... - def test_exceptions(self): ... - def test_warning(self): ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/tests/test_models.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/tests/test_models.pyi deleted file mode 100644 index b24f88dd..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/tests/test_models.pyi +++ /dev/null @@ -1,33 +0,0 @@ -from ..models import Interpolation as Interpolation, Models as Models, Quadratic as Quadratic -from ..problem import ( - BoundConstraints as BoundConstraints, - LinearConstraints as LinearConstraints, - NonlinearConstraints as NonlinearConstraints, - ObjectiveFunction as ObjectiveFunction, - Problem as Problem, -) -from ..settings import Options as Options -from ..utils import FeasibleSuccess as FeasibleSuccess, MaxEvalError as MaxEvalError, TargetSuccess as TargetSuccess -from scipy._typing import Untyped -from scipy.optimize import ( - Bounds as Bounds, - LinearConstraint as LinearConstraint, - NonlinearConstraint as NonlinearConstraint, - rosen as rosen, -) - -class TestInterpolation: - def test_simple(self): ... - def test_close(self): ... - -class TestQuadratic: - def test_simple(self): ... - def test_exceptions(self): ... - -class TestModels: - def test_simple(self): ... - def test_max_eval(self): ... - def test_feasibility_problem(self): ... - def test_target(self): ... - -def get_problem(x0) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/tests/test_problem.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/tests/test_problem.pyi deleted file mode 100644 index 38592879..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/tests/test_problem.pyi +++ /dev/null @@ -1,53 +0,0 @@ -from ..problem import ( - BoundConstraints as BoundConstraints, - LinearConstraints as LinearConstraints, - NonlinearConstraints as NonlinearConstraints, - ObjectiveFunction as ObjectiveFunction, - Problem as Problem, -) -from ..settings import PRINT_OPTIONS as PRINT_OPTIONS -from ..utils import CallbackSuccess as CallbackSuccess -from scipy._typing import Untyped -from scipy.optimize import Bounds as Bounds, LinearConstraint as LinearConstraint, NonlinearConstraint as NonlinearConstraint -from scipy.optimize._minimize import standardize_constraints as standardize_constraints - -class BaseTest: - @staticmethod - def rosen(x, c: float = 100.0) -> Untyped: ... - class Rosen: - def __call__(self, x) -> Untyped: ... - -class TestObjectiveFunction(BaseTest): - def test_simple(self, capsys): ... - def test_args(self): ... - def test_none(self): ... - def test_wrapper(self): ... - def test_verbose(self, capsys): ... - -class TestBoundConstraints: - def test_simple(self): ... - def test_nan(self): ... - def test_infeasible(self): ... - -class TestLinearConstraints: - def test_simple(self): ... - def test_nan(self): ... - def test_inf(self): ... - -class TestNonlinearConstraint: - def test_simple(self) -> Untyped: ... - def test_args(self) -> Untyped: ... - def test_verbose(self, capsys): ... - def test_exceptions(self): ... - -class TestProblem(BaseTest): - def test_simple(self): ... - def test_scale(self): ... - def test_barrier(self) -> Untyped: ... - def test_history(self): ... - def test_filter(self): ... - def test_callback(self): ... - def test_type(self): ... - def test_feasibility_problem(self): ... - def test_best_eval(self): ... - def test_exceptions(self): ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/utils/__init__.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/utils/__init__.pyi deleted file mode 100644 index e43e68da..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/utils/__init__.pyi +++ /dev/null @@ -1,8 +0,0 @@ -from .exceptions import ( - CallbackSuccess as CallbackSuccess, - FeasibleSuccess as FeasibleSuccess, - MaxEvalError as MaxEvalError, - TargetSuccess as TargetSuccess, -) -from .math import exact_1d_array as exact_1d_array, get_arrays_tol as get_arrays_tol -from .versions import show_versions as show_versions diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/utils/exceptions.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/utils/exceptions.pyi deleted file mode 100644 index 0970be8f..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/utils/exceptions.pyi +++ /dev/null @@ -1,4 +0,0 @@ -class MaxEvalError(Exception): ... -class TargetSuccess(Exception): ... -class CallbackSuccess(StopIteration): ... -class FeasibleSuccess(Exception): ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/utils/math.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/utils/math.pyi deleted file mode 100644 index dabec97f..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/utils/math.pyi +++ /dev/null @@ -1,7 +0,0 @@ -from scipy._typing import Untyped - -EPS: Untyped - -def get_arrays_tol(*arrays) -> Untyped: ... -def exact_1d_array(x, message) -> Untyped: ... -def exact_2d_array(x, message) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/__init__.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/test_exceptions.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/test_exceptions.pyi deleted file mode 100644 index becd0163..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/test_exceptions.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from ..exceptions import ( - CallbackSuccess as CallbackSuccess, - FeasibleSuccess as FeasibleSuccess, - MaxEvalError as MaxEvalError, - TargetSuccess as TargetSuccess, -) - -def test_max_eval_error(): ... -def test_target_success(): ... -def test_callback_success(): ... -def test_feasible_success(): ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/test_math.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/test_math.pyi deleted file mode 100644 index b60fcc23..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/utils/tests/test_math.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from ..math import exact_1d_array as exact_1d_array, exact_2d_array as exact_2d_array, get_arrays_tol as get_arrays_tol - -class TestGetArraysTol: - def test_simple(self): ... - def test_infinite(self): ... - def test_nan(self): ... - def test_exceptions(self): ... - -class TestExact1DArray: - def test_simple(self): ... - def test_broadcast(self): ... - def test_exceptions(self): ... - -class TestExact2DArray: - def test_simple(self): ... - def test_broadcast(self): ... - def test_exceptions(self): ... diff --git a/scipy-stubs/_lib/cobyqa/cobyqa/utils/versions.pyi b/scipy-stubs/_lib/cobyqa/cobyqa/utils/versions.pyi deleted file mode 100644 index 6a0cb358..00000000 --- a/scipy-stubs/_lib/cobyqa/cobyqa/utils/versions.pyi +++ /dev/null @@ -1 +0,0 @@ -def show_versions(): ... diff --git a/scipy-stubs/_lib/cobyqa/doc/source/conf.pyi b/scipy-stubs/_lib/cobyqa/doc/source/conf.pyi deleted file mode 100644 index 4129e4ca..00000000 --- a/scipy-stubs/_lib/cobyqa/doc/source/conf.pyi +++ /dev/null @@ -1,39 +0,0 @@ -from scipy._typing import Untyped - -project: str -author: str -copyright: Untyped -version: Untyped -release: Untyped -archive: Untyped -downloads: Untyped -extensions: Untyped -templates_path: Untyped -exclude_patterns: Untyped -today_fmt: str -default_role: str -add_function_parentheses: bool -rst_prolog: Untyped -suppress_warnings: Untyped -html_theme: str -html_static_path: Untyped -html_js_files: Untyped -html_context: Untyped -html_theme_options: Untyped -html_title: Untyped -htmlhelp_basename: str -latex_documents: Untyped -latex_elements: Untyped -autosummary_generate: bool -intersphinx_mapping: Untyped -bibtex_bibfiles: Untyped -bibtex_encoding: str -bibtex_default_style: str -bibtex_bibliography_header: str -bibtex_footbibliography_header = bibtex_bibliography_header -bibtex_cite_id: str -bibtex_footcite_id: str -bibtex_bibliography_id: str -bibtex_footbibliography_id: str - -def linkcode_resolve(domain, info) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/examples/feasibility.pyi b/scipy-stubs/_lib/cobyqa/examples/feasibility.pyi deleted file mode 100644 index dfb2314e..00000000 --- a/scipy-stubs/_lib/cobyqa/examples/feasibility.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from scipy._typing import Untyped -from scipy.optimize import LinearConstraint as LinearConstraint, NonlinearConstraint as NonlinearConstraint - -def cub(x) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/examples/powell1994.pyi b/scipy-stubs/_lib/cobyqa/examples/powell1994.pyi deleted file mode 100644 index 86d10842..00000000 --- a/scipy-stubs/_lib/cobyqa/examples/powell1994.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from scipy._typing import Untyped -from scipy.optimize import Bounds as Bounds, LinearConstraint as LinearConstraint, NonlinearConstraint as NonlinearConstraint - -def fun(x, no) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/examples/powell2015.pyi b/scipy-stubs/_lib/cobyqa/examples/powell2015.pyi deleted file mode 100644 index bd97478f..00000000 --- a/scipy-stubs/_lib/cobyqa/examples/powell2015.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from scipy._typing import Untyped -from scipy.optimize import Bounds as Bounds, LinearConstraint as LinearConstraint - -def fun(x) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/examples/quadratic.pyi b/scipy-stubs/_lib/cobyqa/examples/quadratic.pyi deleted file mode 100644 index 13f27410..00000000 --- a/scipy-stubs/_lib/cobyqa/examples/quadratic.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from scipy._typing import Untyped -from scipy.optimize import Bounds as Bounds, LinearConstraint as LinearConstraint - -def quad(x) -> Untyped: ... diff --git a/scipy-stubs/_lib/cobyqa/examples/rosenbrock.pyi b/scipy-stubs/_lib/cobyqa/examples/rosenbrock.pyi deleted file mode 100644 index 452ca8de..00000000 --- a/scipy-stubs/_lib/cobyqa/examples/rosenbrock.pyi +++ /dev/null @@ -1 +0,0 @@ -from scipy.optimize import Bounds as Bounds, LinearConstraint as LinearConstraint, rosen as rosen diff --git a/scipy-stubs/_lib/highs/check/pythontest.pyi b/scipy-stubs/_lib/highs/check/pythontest.pyi deleted file mode 100644 index 9eabb319..00000000 --- a/scipy-stubs/_lib/highs/check/pythontest.pyi +++ /dev/null @@ -1,10 +0,0 @@ -from scipy._typing import Untyped - -cc: Untyped -cl: Untyped -cu: Untyped -ru: Untyped -rl: Untyped -astart: Untyped -aindex: Untyped -avalue: Untyped diff --git a/scipy-stubs/_lib/highs/examples/call_highs_from_python.pyi b/scipy-stubs/_lib/highs/examples/call_highs_from_python.pyi deleted file mode 100644 index 018fa825..00000000 --- a/scipy-stubs/_lib/highs/examples/call_highs_from_python.pyi +++ /dev/null @@ -1,24 +0,0 @@ -from scipy._typing import Untyped - -file: str -inf: float -col_cost: Untyped -col_lower: Untyped -col_upper: Untyped -row_lower: Untyped -row_upper: Untyped -a_start: Untyped -a_index: Untyped -a_value: Untyped -return_status: Untyped -model_status: Untyped -col_value: Untyped -col_dual: Untyped -row_value: Untyped -row_dual: Untyped -col_basis: Untyped -row_basis: Untyped -integrality: Untyped -q_start: Untyped -q_index: Untyped -q_value: Untyped diff --git a/scipy-stubs/_lib/highs/examples/call_highs_from_python1.pyi b/scipy-stubs/_lib/highs/examples/call_highs_from_python1.pyi deleted file mode 100644 index 3d46ff7f..00000000 --- a/scipy-stubs/_lib/highs/examples/call_highs_from_python1.pyi +++ /dev/null @@ -1,46 +0,0 @@ -import typing - -from scipy._typing import Untyped - -inf: Untyped -h: Untyped -alt_inf: Untyped -num_cons: int -lower: Untyped -upper: Untyped -num_new_nz: int -starts: Untyped -indices: Untyped -values: Untyped -num_var: Untyped -solution: Untyped -basis: Untyped -info: Untyped -model_status: Untyped -lp: Untyped -num_nz: Untyped -num_row: Untyped -model: Untyped -num_col: int -sense: Untyped -offset: int -col_cost: Untyped -col_lower: Untyped -col_upper: Untyped -row_lower: Untyped -row_upper: Untyped -a_matrix_format: Untyped -a_matrix_start: Untyped -a_matrix_index: Untyped -a_matrix_value: Untyped -a_matrix_num_nz: typing.TypeAlias = a_matrix_start[num_col] -hessian_format: Untyped -hessian_start: Untyped -hessian_index: Untyped -hessian_value: Untyped -hessian_num_nz: typing.TypeAlias = hessian_start[num_col] -integrality: Untyped -presolved_lp: Untyped -h1: Untyped -options: Untyped -run_time: Untyped diff --git a/scipy-stubs/_lib/highs/src/interfaces/highs_python_api.pyi b/scipy-stubs/_lib/highs/src/interfaces/highs_python_api.pyi deleted file mode 100644 index cbb8c64a..00000000 --- a/scipy-stubs/_lib/highs/src/interfaces/highs_python_api.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from ctypes.util import find_library as find_library - -from scipy._typing import Untyped - -highslib: Untyped - -def Highs_lpCall(col_cost, col_lower, col_upper, row_lower, row_upper, a_start, a_index, a_value) -> Untyped: ... -def Highs_mipCall(col_cost, col_lower, col_upper, row_lower, row_upper, a_start, a_index, a_value, integrality) -> Untyped: ... -def Highs_qpCall( - col_cost, col_lower, col_upper, row_lower, row_upper, a_start, a_index, a_value, q_start, q_index, q_value -) -> Untyped: ... diff --git a/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/__init__.pyi b/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/__init__.pyi deleted file mode 100644 index 42a42648..00000000 --- a/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/__init__.pyi +++ /dev/null @@ -1,25 +0,0 @@ -from .highs import ( - HIGHS_VERSION_MAJOR as HIGHS_VERSION_MAJOR, - HIGHS_VERSION_MINOR as HIGHS_VERSION_MINOR, - HIGHS_VERSION_PATCH as HIGHS_VERSION_PATCH, - BasisValidity as BasisValidity, - HessianFormat as HessianFormat, - Highs as Highs, - HighsBasis as HighsBasis, - HighsBasisStatus as HighsBasisStatus, - HighsHessian as HighsHessian, - HighsInfo as HighsInfo, - HighsLogType as HighsLogType, - HighsLp as HighsLp, - HighsModel as HighsModel, - HighsModelStatus as HighsModelStatus, - HighsOptions as HighsOptions, - HighsSolution as HighsSolution, - HighsSparseMatrix as HighsSparseMatrix, - HighsStatus as HighsStatus, - HighsVarType as HighsVarType, - MatrixFormat as MatrixFormat, - ObjSense as ObjSense, - SolutionStatus as SolutionStatus, - kHighsInf as kHighsInf, -) diff --git a/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/highs.pyi b/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/highs.pyi deleted file mode 100644 index d9b91757..00000000 --- a/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/highs.pyi +++ /dev/null @@ -1,30 +0,0 @@ -from .highs_bindings import ( - HIGHS_VERSION_MAJOR as HIGHS_VERSION_MAJOR, - HIGHS_VERSION_MINOR as HIGHS_VERSION_MINOR, - HIGHS_VERSION_PATCH as HIGHS_VERSION_PATCH, - BasisValidity as BasisValidity, - CallbackTuple as CallbackTuple, - HessianFormat as HessianFormat, - HighsBasis as HighsBasis, - HighsBasisStatus as HighsBasisStatus, - HighsHessian as HighsHessian, - HighsInfo as HighsInfo, - HighsLogType as HighsLogType, - HighsLp as HighsLp, - HighsModel as HighsModel, - HighsModelStatus as HighsModelStatus, - HighsOptions as HighsOptions, - HighsSolution as HighsSolution, - HighsSparseMatrix as HighsSparseMatrix, - HighsStatus as HighsStatus, - HighsVarType as HighsVarType, - MatrixFormat as MatrixFormat, - ObjSense as ObjSense, - SolutionStatus as SolutionStatus, - _Highs, - kHighsInf as kHighsInf, -) - -class Highs(_Highs): - def __init__(self) -> None: ... - def setLogCallback(self, func, callback_data): ... diff --git a/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/tests/__init__.pyi b/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/tests/test_highspy.pyi b/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/tests/test_highspy.pyi deleted file mode 100644 index 8abfb3a2..00000000 --- a/scipy-stubs/_lib/highs/src/interfaces/highspy/highspy/tests/test_highspy.pyi +++ /dev/null @@ -1,12 +0,0 @@ -import unittest - -from scipy._typing import Untyped - -class TestHighsPy(unittest.TestCase): - def get_basic_model(self) -> Untyped: ... - def get_infeasible_model(self) -> Untyped: ... - def test_basics(self): ... - def test_options(self): ... - def test_clear(self): ... - def test_check_solution_feasibility(self): ... - def test_log_callback(self) -> Untyped: ... diff --git a/scipy-stubs/_lib/highs/src/interfaces/highspy/setup.pyi b/scipy-stubs/_lib/highs/src/interfaces/highspy/setup.pyi deleted file mode 100644 index 3047b817..00000000 --- a/scipy-stubs/_lib/highs/src/interfaces/highspy/setup.pyi +++ /dev/null @@ -1,8 +0,0 @@ -from scipy._typing import Untyped - -original_pybind11_setup_helpers_macos: Untyped -highs_lib: Untyped -highs_lib_dir: Untyped -highs_build_dir: Untyped -highs_include_dir: Untyped -extensions: Untyped diff --git a/scipy-stubs/_lib/unuran/get_and_clean_unuran.pyi b/scipy-stubs/_lib/unuran/get_and_clean_unuran.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/cluster/__init__.pyi b/scipy-stubs/cluster/__init__.pyi index 07e2fb7d..26ca4fb1 100644 --- a/scipy-stubs/cluster/__init__.pyi +++ b/scipy-stubs/cluster/__init__.pyi @@ -1,5 +1,3 @@ from . import hierarchy as hierarchy, vq as vq from scipy._lib._testutils import PytestTester as PytestTester from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/constants/__init__.pyi b/scipy-stubs/constants/__init__.pyi index 570183fc..2ea4281a 100644 --- a/scipy-stubs/constants/__init__.pyi +++ b/scipy-stubs/constants/__init__.pyi @@ -3,7 +3,3 @@ from ._codata import * from ._codata import physical_constants as physical_constants from ._constants import * from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -__doc__: Untyped -test: Untyped diff --git a/scipy-stubs/constants/codata.pyi b/scipy-stubs/constants/codata.pyi index bc0eb39c..3267c078 100644 --- a/scipy-stubs/constants/codata.pyi +++ b/scipy-stubs/constants/codata.pyi @@ -1,4 +1,2 @@ -from scipy._typing import Untyped - -def __dir__() -> Untyped: ... -def __getattr__(name) -> Untyped: ... +# This file is not meant for public use and will be removed in SciPy v2.0.0. +__all__ = () diff --git a/scipy-stubs/constants/constants.pyi b/scipy-stubs/constants/constants.pyi index bc0eb39c..3267c078 100644 --- a/scipy-stubs/constants/constants.pyi +++ b/scipy-stubs/constants/constants.pyi @@ -1,4 +1,2 @@ -from scipy._typing import Untyped - -def __dir__() -> Untyped: ... -def __getattr__(name) -> Untyped: ... +# This file is not meant for public use and will be removed in SciPy v2.0.0. +__all__ = () diff --git a/scipy-stubs/datasets/__init__.pyi b/scipy-stubs/datasets/__init__.pyi index f9fa3e0c..023d1369 100644 --- a/scipy-stubs/datasets/__init__.pyi +++ b/scipy-stubs/datasets/__init__.pyi @@ -1,7 +1,3 @@ from ._download_all import download_all as download_all from ._fetchers import ascent as ascent, electrocardiogram as electrocardiogram, face as face from ._utils import clear_cache as clear_cache -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/differentiate/__init__.pyi b/scipy-stubs/differentiate/__init__.pyi deleted file mode 100644 index 60164568..00000000 --- a/scipy-stubs/differentiate/__init__.pyi +++ /dev/null @@ -1,5 +0,0 @@ -from ._differentiate import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/differentiate/_differentiate.pyi b/scipy-stubs/differentiate/_differentiate.pyi deleted file mode 100644 index 97b18933..00000000 --- a/scipy-stubs/differentiate/_differentiate.pyi +++ /dev/null @@ -1,27 +0,0 @@ -from scipy._lib._array_api import array_namespace as array_namespace -from scipy._typing import Untyped - -def differentiate( - f, - x, - *, - args=(), - tolerances: Untyped | None = None, - maxiter: int = 10, - order: int = 8, - initial_step: float = 0.5, - step_factor: float = 2.0, - step_direction: int = 0, - preserve_shape: bool = False, - callback: Untyped | None = None, -) -> Untyped: ... -def jacobian( - f, - x, - *, - tolerances: Untyped | None = None, - maxiter: int = 10, - order: int = 8, - initial_step: float = 0.5, - step_factor: float = 2.0, -) -> Untyped: ... diff --git a/scipy-stubs/fft/__init__.pyi b/scipy-stubs/fft/__init__.pyi index 84b72611..ff4aad65 100644 --- a/scipy-stubs/fft/__init__.pyi +++ b/scipy-stubs/fft/__init__.pyi @@ -44,7 +44,3 @@ from ._realtransforms import ( idst as idst, idstn as idstn, ) -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/fft/_pocketfft/__init__.pyi b/scipy-stubs/fft/_pocketfft/__init__.pyi index c526a0c9..14161049 100644 --- a/scipy-stubs/fft/_pocketfft/__init__.pyi +++ b/scipy-stubs/fft/_pocketfft/__init__.pyi @@ -1,7 +1,3 @@ from .basic import * from .helper import * from .realtransforms import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/fft/_pocketfft/tests/__init__.pyi b/scipy-stubs/fft/_pocketfft/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/fft/_pocketfft/tests/test_basic.pyi b/scipy-stubs/fft/_pocketfft/tests/test_basic.pyi deleted file mode 100644 index 570aea2c..00000000 --- a/scipy-stubs/fft/_pocketfft/tests/test_basic.pyi +++ /dev/null @@ -1,203 +0,0 @@ -from scipy._typing import Untyped -from scipy.fft._pocketfft import ( - fft as fft, - fftn as fftn, - hfft as hfft, - hfftn as hfftn, - ifft as ifft, - ifftn as ifftn, - ihfft as ihfft, - ihfftn as ihfftn, - irfft as irfft, - irfftn as irfftn, - rfft as rfft, - rfftn as rfftn, -) - -LARGE_COMPOSITE_SIZES: Untyped -SMALL_COMPOSITE_SIZES: Untyped -LARGE_PRIME_SIZES: Untyped -SMALL_PRIME_SIZES: Untyped - -def random(size) -> Untyped: ... -def swap_byteorder(arr) -> Untyped: ... -def direct_dft(x) -> Untyped: ... -def direct_idft(x) -> Untyped: ... -def direct_dftn(x) -> Untyped: ... -def direct_idftn(x) -> Untyped: ... -def direct_rdft(x) -> Untyped: ... -def direct_irdft(x, n) -> Untyped: ... -def direct_rdftn(x) -> Untyped: ... - -class _TestFFTBase: - cdt: Untyped - rdt: Untyped - def setup_method(self): ... - def test_definition(self): ... - def test_n_argument_real(self): ... - def test_djbfft(self): ... - def test_invalid_sizes(self): ... - -class TestLongDoubleFFT(_TestFFTBase): - cdt: Untyped - rdt: Untyped - def setup_method(self): ... - -class TestDoubleFFT(_TestFFTBase): - cdt: Untyped - rdt: Untyped - def setup_method(self): ... - -class TestSingleFFT(_TestFFTBase): - cdt: Untyped - rdt: Untyped - def setup_method(self): ... - -class TestFloat16FFT: - def test_1_argument_real(self): ... - def test_n_argument_real(self): ... - -class _TestIFFTBase: - def setup_method(self): ... - def test_definition(self): ... - def test_definition_real(self): ... - def test_djbfft(self): ... - def test_random_complex(self): ... - def test_random_real(self): ... - def test_size_accuracy(self): ... - def test_invalid_sizes(self): ... - -class TestLongDoubleIFFT(_TestIFFTBase): - cdt: Untyped - rdt: Untyped - rtol: float - atol: float - def setup_method(self): ... - -class TestDoubleIFFT(_TestIFFTBase): - cdt: Untyped - rdt: Untyped - rtol: float - atol: float - def setup_method(self): ... - -class TestSingleIFFT(_TestIFFTBase): - cdt: Untyped - rdt: Untyped - rtol: float - atol: float - def setup_method(self): ... - -class _TestRFFTBase: - def setup_method(self): ... - def test_definition(self): ... - def test_djbfft(self): ... - def test_invalid_sizes(self): ... - def test_complex_input(self): ... - class MockSeries: - data: Untyped - def __init__(self, data) -> None: ... - def __getattr__(self, item) -> Untyped: ... - - def test_non_ndarray_with_dtype(self): ... - -class TestRFFTLongDouble(_TestRFFTBase): - cdt: Untyped - rdt: Untyped - def setup_method(self): ... - -class TestRFFTDouble(_TestRFFTBase): - cdt: Untyped - rdt: Untyped - def setup_method(self): ... - -class TestRFFTSingle(_TestRFFTBase): - cdt: Untyped - rdt: Untyped - def setup_method(self): ... - -class _TestIRFFTBase: - def setup_method(self): ... - def test_definition(self): ... - def test_djbfft(self): ... - def test_random_real(self): ... - def test_size_accuracy(self): ... - def test_invalid_sizes(self): ... - -class TestIRFFTLongDouble(_TestIRFFTBase): - cdt: Untyped - rdt: Untyped - ndec: int - def setup_method(self): ... - -class TestIRFFTDouble(_TestIRFFTBase): - cdt: Untyped - rdt: Untyped - ndec: int - def setup_method(self): ... - -class TestIRFFTSingle(_TestIRFFTBase): - cdt: Untyped - rdt: Untyped - ndec: int - def setup_method(self): ... - -class TestFftnSingle: - def setup_method(self): ... - def test_definition(self): ... - def test_size_accuracy_small(self, size): ... - def test_size_accuracy_large(self, size): ... - def test_definition_float16(self): ... - def test_float16_input_small(self, size): ... - def test_float16_input_large(self, size): ... - -class TestFftn: - def setup_method(self): ... - def test_definition(self): ... - def test_axes_argument(self): ... - def test_shape_argument(self): ... - def test_shape_axes_argument(self): ... - def test_shape_axes_argument2(self): ... - def test_shape_argument_more(self): ... - def test_invalid_sizes(self): ... - def test_no_axes(self): ... - def test_regression_244(self): ... - -class TestIfftn: - dtype: Untyped - cdtype: Untyped - def setup_method(self): ... - def test_definition(self, dtype, cdtype, maxnlp): ... - def test_random_complex(self, maxnlp, size): ... - def test_invalid_sizes(self): ... - def test_no_axes(self): ... - -class TestRfftn: - dtype: Untyped - cdtype: Untyped - def setup_method(self): ... - def test_definition(self, dtype, cdtype, maxnlp): ... - def test_random(self, size): ... - def test_invalid_sizes(self, func): ... - def test_no_axes(self, func): ... - def test_complex_input(self): ... - -class FakeArray: - __array_interface__: Untyped - def __init__(self, data) -> None: ... - -class FakeArray2: - def __init__(self, data) -> None: ... - def __array__(self, dtype: Untyped | None = None, copy: Untyped | None = None) -> Untyped: ... - -class TestOverwrite: - real_dtypes: Untyped - dtypes: Untyped - fftsizes: Untyped - def test_fft_ifft(self, dtype, fftsize, overwrite_x, shape, axes): ... - def test_rfft_irfft(self, dtype, fftsize, overwrite_x, shape, axes): ... - def test_fftn_ifftn(self, dtype, overwrite_x, shape, axes): ... - -def test_invalid_norm(func): ... -def test_swapped_byte_order_complex(func): ... -def test_swapped_byte_order_real(func): ... diff --git a/scipy-stubs/fft/_pocketfft/tests/test_real_transforms.pyi b/scipy-stubs/fft/_pocketfft/tests/test_real_transforms.pyi deleted file mode 100644 index e2a65cab..00000000 --- a/scipy-stubs/fft/_pocketfft/tests/test_real_transforms.pyi +++ /dev/null @@ -1,65 +0,0 @@ -from collections.abc import Generator - -from scipy._typing import Untyped -from scipy.fft._pocketfft.realtransforms import ( - dct as dct, - dctn as dctn, - dst as dst, - dstn as dstn, - idct as idct, - idctn as idctn, - idst as idst, - idstn as idstn, -) - -fftpack_test_dir: Untyped -MDATA_COUNT: int -FFTWDATA_COUNT: int - -def is_longdouble_binary_compatible() -> Untyped: ... -def reference_data() -> Generator[Untyped, None, None]: ... -def fftwdata_size(request, reference_data) -> Untyped: ... -def mdata_x(request, reference_data) -> Untyped: ... -def mdata_xy(request, reference_data) -> Untyped: ... -def fftw_dct_ref(type, size, dt, reference_data) -> Untyped: ... -def fftw_dst_ref(type, size, dt, reference_data) -> Untyped: ... -def ref_2d(func, x, **kwargs) -> Untyped: ... -def naive_dct1(x, norm: Untyped | None = None) -> Untyped: ... -def naive_dst1(x, norm: Untyped | None = None) -> Untyped: ... -def naive_dct4(x, norm: Untyped | None = None) -> Untyped: ... -def naive_dst4(x, norm: Untyped | None = None) -> Untyped: ... -def test_complex(transform, dtype): ... - -DecMapType: Untyped -dec_map: DecMapType - -class TestDCT: - def test_definition(self, rdt, type, fftwdata_size, reference_data): ... - def test_axis(self, rdt, type, size): ... - -def test_dct1_definition_ortho(rdt, mdata_x): ... -def test_dct2_definition_matlab(mdata_xy, rdt): ... -def test_dct3_definition_ortho(mdata_x, rdt): ... -def test_dct4_definition_ortho(mdata_x, rdt): ... -def test_idct_definition(fftwdata_size, rdt, type, reference_data): ... -def test_definition(fftwdata_size, rdt, type, reference_data): ... -def test_dst1_definition_ortho(rdt, mdata_x): ... -def test_dst4_definition_ortho(rdt, mdata_x): ... -def test_idst_definition(fftwdata_size, rdt, type, reference_data): ... -def test_overwrite(routine, dtype, shape, axis, type, norm, overwrite_x): ... - -class Test_DCTN_IDCTN: - dec: int - dct_type: Untyped - norms: Untyped - rstate: Untyped - shape: Untyped - data: Untyped - def test_axes_round_trip(self, fforward, finverse, axes, dct_type, norm): ... - def test_dctn_vs_2d_reference(self, funcn, func, dct_type, norm): ... - def test_idctn_vs_2d_reference(self, funcn, func, dct_type, norm): ... - def test_axes_and_shape(self, fforward, finverse): ... - def test_shape(self, fforward): ... - def test_shape_is_none_with_axes(self, fforward, finverse, axes): ... - -def test_swapped_byte_order(func): ... diff --git a/scipy-stubs/fftpack/__init__.pyi b/scipy-stubs/fftpack/__init__.pyi index 11b63502..b695ee10 100644 --- a/scipy-stubs/fftpack/__init__.pyi +++ b/scipy-stubs/fftpack/__init__.pyi @@ -3,7 +3,3 @@ from ._basic import * from ._helper import * from ._pseudo_diffs import * from ._realtransforms import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/integrate/__init__.pyi b/scipy-stubs/integrate/__init__.pyi index 5b071ce8..4d270545 100644 --- a/scipy-stubs/integrate/__init__.pyi +++ b/scipy-stubs/integrate/__init__.pyi @@ -18,7 +18,3 @@ from ._quad_vec import quad_vec as quad_vec from ._quadpack_py import * from ._quadrature import * from ._tanhsinh import nsum as nsum -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/integrate/_ivp/tests/__init__.pyi b/scipy-stubs/integrate/_ivp/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/integrate/_ivp/tests/test_ivp.pyi b/scipy-stubs/integrate/_ivp/tests/test_ivp.pyi deleted file mode 100644 index 34b1dfe9..00000000 --- a/scipy-stubs/integrate/_ivp/tests/test_ivp.pyi +++ /dev/null @@ -1,67 +0,0 @@ -from scipy._typing import Untyped -from scipy.integrate import ( - BDF as BDF, - DOP853 as DOP853, - LSODA as LSODA, - RK23 as RK23, - RK45 as RK45, - OdeSolution as OdeSolution, - Radau as Radau, - solve_ivp as solve_ivp, -) -from scipy.integrate._ivp.base import ConstantDenseOutput as ConstantDenseOutput -from scipy.integrate._ivp.common import num_jac as num_jac, select_initial_step as select_initial_step -from scipy.optimize._numdiff import group_columns as group_columns -from scipy.sparse import coo_matrix as coo_matrix, csc_matrix as csc_matrix - -def fun_zero(t, y) -> Untyped: ... -def fun_linear(t, y) -> Untyped: ... -def jac_linear() -> Untyped: ... -def sol_linear(t) -> Untyped: ... -def fun_rational(t, y) -> Untyped: ... -def fun_rational_vectorized(t, y) -> Untyped: ... -def jac_rational(t, y) -> Untyped: ... -def jac_rational_sparse(t, y) -> Untyped: ... -def sol_rational(t) -> Untyped: ... -def fun_medazko(t, y) -> Untyped: ... -def medazko_sparsity(n) -> Untyped: ... -def fun_complex(t, y) -> Untyped: ... -def jac_complex(t, y) -> Untyped: ... -def jac_complex_sparse(t, y) -> Untyped: ... -def sol_complex(t) -> Untyped: ... -def fun_event_dense_output_LSODA(t, y) -> Untyped: ... -def jac_event_dense_output_LSODA(t, y) -> Untyped: ... -def sol_event_dense_output_LSODA(t) -> Untyped: ... -def compute_error(y, y_true, rtol, atol) -> Untyped: ... -def test_integration(): ... -def test_integration_complex(): ... -def test_integration_sparse_difference(): ... -def test_integration_const_jac(): ... -def test_integration_stiff(method) -> Untyped: ... -def test_events() -> Untyped: ... -def test_event_terminal_integer(n_events): ... -def test_event_terminal_iv(): ... -def test_max_step(): ... -def test_first_step(): ... -def test_t_eval(): ... -def test_t_eval_dense_output(): ... -def test_t_eval_early_event() -> Untyped: ... -def test_event_dense_output_LSODA() -> Untyped: ... -def test_no_integration() -> Untyped: ... -def test_no_integration_class() -> Untyped: ... -def test_empty() -> Untyped: ... -def test_ConstantDenseOutput(): ... -def test_classes(): ... -def test_OdeSolution(): ... -def test_num_jac() -> Untyped: ... -def test_num_jac_sparse() -> Untyped: ... -def test_args() -> Untyped: ... -def test_array_rtol() -> Untyped: ... -def test_integration_zero_rhs(method): ... -def test_args_single_value() -> Untyped: ... -def test_initial_state_finiteness(f0_fill): ... -def test_zero_interval(method) -> Untyped: ... -def test_tbound_respected_small_interval(method) -> Untyped: ... -def test_tbound_respected_larger_interval(method) -> Untyped: ... -def test_tbound_respected_oscillator(method) -> Untyped: ... -def test_inital_maxstep(): ... diff --git a/scipy-stubs/integrate/_ivp/tests/test_rk.pyi b/scipy-stubs/integrate/_ivp/tests/test_rk.pyi deleted file mode 100644 index a1475f80..00000000 --- a/scipy-stubs/integrate/_ivp/tests/test_rk.pyi +++ /dev/null @@ -1,8 +0,0 @@ -from scipy._typing import Untyped -from scipy.integrate import DOP853 as DOP853, RK23 as RK23, RK45 as RK45 -from scipy.integrate._ivp import dop853_coefficients as dop853_coefficients - -def test_coefficient_properties(solver): ... -def test_coefficient_properties_dop853(): ... -def test_error_estimation(solver_class) -> Untyped: ... -def test_error_estimation_complex(solver_class) -> Untyped: ... diff --git a/scipy-stubs/interpolate/__init__.pyi b/scipy-stubs/interpolate/__init__.pyi index 69bb8505..c185a093 100644 --- a/scipy-stubs/interpolate/__init__.pyi +++ b/scipy-stubs/interpolate/__init__.pyi @@ -19,8 +19,5 @@ from ._polyint import * from ._rbf import Rbf as Rbf from ._rbfinterp import * from ._rgi import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped -test: Untyped pchip = PchipInterpolator diff --git a/scipy-stubs/io/__init__.pyi b/scipy-stubs/io/__init__.pyi index e6a75456..55609aa0 100644 --- a/scipy-stubs/io/__init__.pyi +++ b/scipy-stubs/io/__init__.pyi @@ -9,7 +9,3 @@ from ._harwell_boeing import hb_read as hb_read, hb_write as hb_write from ._idl import readsav as readsav from ._netcdf import netcdf_file as netcdf_file, netcdf_variable as netcdf_variable from .matlab import loadmat as loadmat, savemat as savemat, whosmat as whosmat -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/io/_harwell_boeing/__init__.pyi b/scipy-stubs/io/_harwell_boeing/__init__.pyi index 4b3b600f..194077c0 100644 --- a/scipy-stubs/io/_harwell_boeing/__init__.pyi +++ b/scipy-stubs/io/_harwell_boeing/__init__.pyi @@ -1,5 +1 @@ from .hb import hb_read as hb_read, hb_write as hb_write -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/io/_harwell_boeing/tests/__init__.pyi b/scipy-stubs/io/_harwell_boeing/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/io/_harwell_boeing/tests/test_fortran_format.pyi b/scipy-stubs/io/_harwell_boeing/tests/test_fortran_format.pyi deleted file mode 100644 index 18edfdfa..00000000 --- a/scipy-stubs/io/_harwell_boeing/tests/test_fortran_format.pyi +++ /dev/null @@ -1,26 +0,0 @@ -from scipy._typing import Untyped -from scipy.io._harwell_boeing._fortran_format_parser import ( - BadFortranFormat as BadFortranFormat, - ExpFormat as ExpFormat, - FortranFormatParser as FortranFormatParser, - IntFormat as IntFormat, -) - -class TestFortranFormatParser: - parser: Untyped - def setup_method(self): ... - def test_simple_int(self): ... - def test_simple_repeated_int(self): ... - def test_simple_exp(self): ... - def test_exp_exp(self): ... - def test_repeat_exp(self): ... - def test_repeat_exp_exp(self): ... - def test_wrong_formats(self) -> Untyped: ... - -class TestIntFormat: - def test_to_fortran(self): ... - def test_from_number(self): ... - -class TestExpFormat: - def test_to_fortran(self): ... - def test_from_number(self): ... diff --git a/scipy-stubs/io/_harwell_boeing/tests/test_hb.pyi b/scipy-stubs/io/_harwell_boeing/tests/test_hb.pyi deleted file mode 100644 index f4589f4c..00000000 --- a/scipy-stubs/io/_harwell_boeing/tests/test_hb.pyi +++ /dev/null @@ -1,15 +0,0 @@ -from scipy._typing import Untyped -from scipy.io import hb_read as hb_read, hb_write as hb_write -from scipy.sparse import coo_matrix as coo_matrix, csc_matrix as csc_matrix, rand as rand - -SIMPLE: str -SIMPLE_MATRIX: Untyped - -def assert_csc_almost_equal(r, l): ... - -class TestHBReader: - def test_simple(self): ... - -class TestHBReadWrite: - def check_save_load(self, value): ... - def test_simple(self): ... diff --git a/scipy-stubs/io/arff/__init__.pyi b/scipy-stubs/io/arff/__init__.pyi index 864409f7..5d929362 100644 --- a/scipy-stubs/io/arff/__init__.pyi +++ b/scipy-stubs/io/arff/__init__.pyi @@ -1,6 +1,2 @@ from . import arffread as arffread from ._arffread import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/io/arff/tests/__init__.pyi b/scipy-stubs/io/arff/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/io/arff/tests/test_arffread.pyi b/scipy-stubs/io/arff/tests/test_arffread.pyi deleted file mode 100644 index 805c47c8..00000000 --- a/scipy-stubs/io/arff/tests/test_arffread.pyi +++ /dev/null @@ -1,73 +0,0 @@ -from scipy._typing import Untyped -from scipy.io.arff import loadarff as loadarff -from scipy.io.arff._arffread import ParseArffError as ParseArffError, read_header as read_header - -data_path: Untyped -test1: Untyped -test2: Untyped -test3: Untyped -test4: Untyped -test5: Untyped -test6: Untyped -test7: Untyped -test8: Untyped -test9: Untyped -test10: Untyped -test11: Untyped -test_quoted_nominal: Untyped -test_quoted_nominal_spaces: Untyped -expect4_data: Untyped -expected_types: Untyped -missing: Untyped -expect_missing_raw: Untyped -expect_missing: Untyped - -class TestData: - def test1(self): ... - def test2(self): ... - def test3(self): ... - def test4(self): ... - def test_filelike(self): ... - def test_path(self): ... - -class TestMissingData: - def test_missing(self): ... - -class TestNoData: - def test_nodata(self): ... - -class TestHeader: - def test_type_parsing(self): ... - def test_badtype_parsing(self): ... - def test_fullheader1(self): ... - def test_dateheader(self): ... - def test_dateheader_unsupported(self): ... - -class TestDateAttribute: - def setup_method(self): ... - def test_year_attribute(self): ... - def test_month_attribute(self): ... - def test_date_attribute(self): ... - def test_datetime_local_attribute(self): ... - def test_datetime_missing(self): ... - def test_datetime_timezone(self): ... - -class TestRelationalAttribute: - def setup_method(self): ... - def test_attributes(self): ... - def test_data(self): ... - -class TestRelationalAttributeLong: - def setup_method(self): ... - def test_attributes(self): ... - def test_data(self): ... - -class TestQuotedNominal: - def setup_method(self): ... - def test_attributes(self): ... - def test_data(self): ... - -class TestQuotedNominalSpaces: - def setup_method(self): ... - def test_attributes(self): ... - def test_data(self): ... diff --git a/scipy-stubs/io/matlab/__init__.pyi b/scipy-stubs/io/matlab/__init__.pyi index 08bed80a..4f8ca984 100644 --- a/scipy-stubs/io/matlab/__init__.pyi +++ b/scipy-stubs/io/matlab/__init__.pyi @@ -18,7 +18,3 @@ from ._miobase import ( MatWriteError as MatWriteError, matfile_version as matfile_version, ) -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/io/matlab/tests/__init__.pyi b/scipy-stubs/io/matlab/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/io/matlab/tests/test_byteordercodes.pyi b/scipy-stubs/io/matlab/tests/test_byteordercodes.pyi deleted file mode 100644 index a683dd23..00000000 --- a/scipy-stubs/io/matlab/tests/test_byteordercodes.pyi +++ /dev/null @@ -1,2 +0,0 @@ -def test_native(): ... -def test_to_numpy(): ... diff --git a/scipy-stubs/io/matlab/tests/test_mio.pyi b/scipy-stubs/io/matlab/tests/test_mio.pyi deleted file mode 100644 index 3495b08f..00000000 --- a/scipy-stubs/io/matlab/tests/test_mio.pyi +++ /dev/null @@ -1,115 +0,0 @@ -from scipy._lib._util import VisibleDeprecationWarning as VisibleDeprecationWarning -from scipy._typing import Untyped -from scipy.io.matlab import MatlabFunction as MatlabFunction, MatlabObject as MatlabObject, MatlabOpaque as MatlabOpaque -from scipy.io.matlab._mio import ( - loadmat as loadmat, - mat_reader_factory as mat_reader_factory, - savemat as savemat, - whosmat as whosmat, -) -from scipy.io.matlab._mio5 import ( - EmptyStructMarker as EmptyStructMarker, - MatFile5Reader as MatFile5Reader, - MatFile5Writer as MatFile5Writer, - to_writeable as to_writeable, - varmats_from_mat as varmats_from_mat, -) -from scipy.io.matlab._miobase import ( - MatReadError as MatReadError, - MatWriteError as MatWriteError, - matdims as matdims, - matfile_version as matfile_version, -) - -test_data_path: Untyped - -def mlarr(*args, **kwargs) -> Untyped: ... - -theta: Untyped -case_table4: Untyped -A: Untyped -B: Untyped -CA: Untyped -case_table5: Untyped -CAE: Untyped -objarr: Untyped -st_sub_arr: Untyped -dtype: Untyped -st1: Untyped -CN: Untyped -st2: Untyped -a: Untyped -ODT: Untyped -MO: Untyped -m0: Untyped -fp_u_str: Untyped -u_str: Untyped -case_table5_rt: Untyped - -def types_compatible(var1, var2) -> Untyped: ... -def test_load(version): ... -def test_whos(version): ... -def test_round_trip(version, fmts): ... -def test_gzip_simple(): ... -def test_multiple_open(): ... -def test_mat73(): ... -def test_warnings(): ... -def test_regression_653(): ... -def test_structname_len(): ... -def test_4_and_long_field_names_incompatible(): ... -def test_long_field_names(): ... -def test_long_field_names_in_struct(): ... -def test_cell_with_one_thing_in_it(): ... -def test_writer_properties(): ... -def test_use_small_element(): ... -def test_save_dict(): ... -def test_1d_shape(): ... -def test_compression(): ... -def test_single_object(): ... -def test_skip_variable(): ... -def test_empty_struct(): ... -def test_save_empty_dict(): ... -def assert_any_equal(output, alternatives): ... -def test_to_writeable(): ... -def test_recarray(): ... -def test_save_object(): ... -def test_read_opts(): ... -def test_empty_string(): ... -def test_corrupted_data(): ... -def test_corrupted_data_check_can_be_disabled(): ... -def test_read_both_endian(): ... -def test_write_opposite_endian(): ... -def test_logical_array(): ... -def test_logical_out_type(): ... -def test_roundtrip_zero_dimensions(): ... -def test_mat4_3d(): ... -def test_func_read(): ... -def test_mat_dtype(): ... -def test_sparse_in_struct(): ... -def test_mat_struct_squeeze(): ... -def test_scalar_squeeze(): ... -def test_str_round(): ... -def test_fieldnames(): ... -def test_loadmat_varnames(): ... -def test_round_types(): ... -def test_varmats_from_mat() -> Untyped: ... -def test_one_by_zero(): ... -def test_load_mat4_le(): ... -def test_unicode_mat4(): ... -def test_logical_sparse(): ... -def test_empty_sparse(): ... -def test_empty_mat_error(): ... -def test_miuint32_compromise(): ... -def test_miutf8_for_miint8_compromise(): ... -def test_bad_utf8(): ... -def test_save_unicode_field(tmpdir): ... -def test_save_custom_array_type(tmpdir) -> Untyped: ... -def test_filenotfound(): ... -def test_simplify_cells(): ... -def test_matfile_version(version, filt, regex): ... -def test_opaque(): ... -def test_opaque_simplify(): ... -def test_deprecation(): ... -def test_gh_17992(tmp_path): ... -def test_gh_19659(tmp_path): ... -def test_large_m4(): ... diff --git a/scipy-stubs/io/matlab/tests/test_mio5_utils.pyi b/scipy-stubs/io/matlab/tests/test_mio5_utils.pyi deleted file mode 100644 index 793f109f..00000000 --- a/scipy-stubs/io/matlab/tests/test_mio5_utils.pyi +++ /dev/null @@ -1,6 +0,0 @@ -def test_byteswap(): ... -def test_read_tag(): ... -def test_read_stream(): ... -def test_read_numeric(): ... -def test_read_numeric_writeable(): ... -def test_zero_byte_string(): ... diff --git a/scipy-stubs/io/matlab/tests/test_mio_funcs.pyi b/scipy-stubs/io/matlab/tests/test_mio_funcs.pyi deleted file mode 100644 index c0f38ae7..00000000 --- a/scipy-stubs/io/matlab/tests/test_mio_funcs.pyi +++ /dev/null @@ -1,8 +0,0 @@ -from scipy._typing import Untyped -from scipy.io.matlab._mio5 import MatFile5Reader as MatFile5Reader - -test_data_path: Untyped - -def read_minimat_vars(rdr) -> Untyped: ... -def read_workspace_vars(fname) -> Untyped: ... -def test_jottings(): ... diff --git a/scipy-stubs/io/matlab/tests/test_mio_utils.pyi b/scipy-stubs/io/matlab/tests/test_mio_utils.pyi deleted file mode 100644 index ed174dd7..00000000 --- a/scipy-stubs/io/matlab/tests/test_mio_utils.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from scipy.io.matlab._mio_utils import chars_to_strings as chars_to_strings, squeeze_element as squeeze_element - -def test_squeeze_element(): ... -def test_chars_strings(): ... diff --git a/scipy-stubs/io/matlab/tests/test_miobase.pyi b/scipy-stubs/io/matlab/tests/test_miobase.pyi deleted file mode 100644 index 73719775..00000000 --- a/scipy-stubs/io/matlab/tests/test_miobase.pyi +++ /dev/null @@ -1,3 +0,0 @@ -from scipy.io.matlab._miobase import matdims as matdims - -def test_matdims(): ... diff --git a/scipy-stubs/io/matlab/tests/test_pathological.pyi b/scipy-stubs/io/matlab/tests/test_pathological.pyi deleted file mode 100644 index 357cf29f..00000000 --- a/scipy-stubs/io/matlab/tests/test_pathological.pyi +++ /dev/null @@ -1,7 +0,0 @@ -from scipy._typing import Untyped -from scipy.io.matlab._mio import loadmat as loadmat - -TEST_DATA_PATH: Untyped - -def test_multiple_fieldnames(): ... -def test_malformed1(): ... diff --git a/scipy-stubs/io/matlab/tests/test_streams.pyi b/scipy-stubs/io/matlab/tests/test_streams.pyi deleted file mode 100644 index 3d104650..00000000 --- a/scipy-stubs/io/matlab/tests/test_streams.pyi +++ /dev/null @@ -1,24 +0,0 @@ -from collections.abc import Generator - -from scipy._typing import Untyped -from scipy.io.matlab._streams import ( - BLOCK_SIZE as BLOCK_SIZE, - GenericStream as GenericStream, - ZlibInputStream as ZlibInputStream, - make_stream as make_stream, -) - -def setup_test_file() -> Generator[Untyped, None, None]: ... -def test_make_stream(): ... -def test_tell_seek(): ... -def test_read(): ... - -class TestZlibInputStream: - def test_read(self): ... - def test_read_max_length(self): ... - def test_read_bad_checksum(self): ... - def test_seek(self): ... - def test_seek_bad_checksum(self): ... - def test_all_data_read(self): ... - def test_all_data_read_overlap(self): ... - def test_all_data_read_bad_checksum(self): ... diff --git a/scipy-stubs/linalg/__init__.pyi b/scipy-stubs/linalg/__init__.pyi index 5545939f..503c5fcc 100644 --- a/scipy-stubs/linalg/__init__.pyi +++ b/scipy-stubs/linalg/__init__.pyi @@ -31,7 +31,3 @@ from ._solvers import * from ._special_matrices import * from .blas import * from .lapack import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/misc/__init__.pyi b/scipy-stubs/misc/__init__.pyi index fb9af97e..3286abca 100644 --- a/scipy-stubs/misc/__init__.pyi +++ b/scipy-stubs/misc/__init__.pyi @@ -1,11 +1,8 @@ from . import common as common, doccer as doccer from ._common import * -from scipy._lib._testutils import PytestTester as PytestTester from scipy._typing import Untyped dataset_methods: Untyped def __dir__() -> Untyped: ... def __getattr__(name) -> Untyped: ... - -test: Untyped diff --git a/scipy-stubs/ndimage/__init__.pyi b/scipy-stubs/ndimage/__init__.pyi index 812dd64c..e38e9215 100644 --- a/scipy-stubs/ndimage/__init__.pyi +++ b/scipy-stubs/ndimage/__init__.pyi @@ -6,7 +6,3 @@ from . import ( morphology as morphology, ) from ._support_alternative_backends import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/ndimage/utils/generate_label_testvectors.pyi b/scipy-stubs/ndimage/utils/generate_label_testvectors.pyi deleted file mode 100644 index 99a41fb3..00000000 --- a/scipy-stubs/ndimage/utils/generate_label_testvectors.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from scipy._typing import Untyped -from scipy.ndimage import label as label - -def generate_test_vecs(infile, strelfile, resultfile) -> Untyped: ... diff --git a/scipy-stubs/odr/__init__.pyi b/scipy-stubs/odr/__init__.pyi index e890a28c..81f50f89 100644 --- a/scipy-stubs/odr/__init__.pyi +++ b/scipy-stubs/odr/__init__.pyi @@ -1,7 +1,3 @@ from . import models as models, odrpack as odrpack from ._models import * from ._odrpack import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/optimize/__init__.pyi b/scipy-stubs/optimize/__init__.pyi index ec446095..f70b7b93 100644 --- a/scipy-stubs/optimize/__init__.pyi +++ b/scipy-stubs/optimize/__init__.pyi @@ -36,7 +36,3 @@ from ._shgo import shgo as shgo from ._slsqp_py import fmin_slsqp as fmin_slsqp from ._tnc import fmin_tnc as fmin_tnc from ._zeros_py import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/optimize/_trustregion_constr/tests/__init__.pyi b/scipy-stubs/optimize/_trustregion_constr/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/optimize/_trustregion_constr/tests/test_canonical_constraint.pyi b/scipy-stubs/optimize/_trustregion_constr/tests/test_canonical_constraint.pyi deleted file mode 100644 index 7522a7f5..00000000 --- a/scipy-stubs/optimize/_trustregion_constr/tests/test_canonical_constraint.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from scipy._typing import Untyped -from scipy.optimize._constraints import ( - Bounds as Bounds, - NonlinearConstraint as NonlinearConstraint, - PreparedConstraint as PreparedConstraint, -) -from scipy.optimize._trustregion_constr.canonical_constraint import ( - CanonicalConstraint as CanonicalConstraint, - initial_constraints_as_canonical as initial_constraints_as_canonical, -) - -def create_quadratic_function(n, m, rng) -> Untyped: ... -def test_bounds_cases(): ... -def test_nonlinear_constraint(): ... -def test_concatenation(): ... -def test_empty(): ... -def test_initial_constraints_as_canonical(): ... -def test_initial_constraints_as_canonical_empty(): ... diff --git a/scipy-stubs/optimize/_trustregion_constr/tests/test_nested_minimize.pyi b/scipy-stubs/optimize/_trustregion_constr/tests/test_nested_minimize.pyi deleted file mode 100644 index 1a00c8e1..00000000 --- a/scipy-stubs/optimize/_trustregion_constr/tests/test_nested_minimize.pyi +++ /dev/null @@ -1,9 +0,0 @@ -from scipy._typing import Untyped -from scipy.optimize import ( - NonlinearConstraint as NonlinearConstraint, - minimize as minimize, - rosen as rosen, - rosen_der as rosen_der, -) - -def test_gh21193() -> Untyped: ... diff --git a/scipy-stubs/optimize/_trustregion_constr/tests/test_projections.pyi b/scipy-stubs/optimize/_trustregion_constr/tests/test_projections.pyi deleted file mode 100644 index 14144252..00000000 --- a/scipy-stubs/optimize/_trustregion_constr/tests/test_projections.pyi +++ /dev/null @@ -1,24 +0,0 @@ -from numpy.testing import TestCase -from sksparse.cholmod import cholesky_AAt as cholesky_AAt - -from scipy._typing import Untyped -from scipy.optimize._trustregion_constr.projections import orthogonality as orthogonality, projections as projections -from scipy.sparse import csc_matrix as csc_matrix - -sksparse_available: bool -available_sparse_methods: Untyped -available_dense_methods: Untyped - -class TestProjections(TestCase): - def test_nullspace_and_least_squares_sparse(self): ... - def test_iterative_refinements_sparse(self): ... - def test_rowspace_sparse(self): ... - def test_nullspace_and_least_squares_dense(self): ... - def test_compare_dense_and_sparse(self): ... - def test_compare_dense_and_sparse2(self): ... - def test_iterative_refinements_dense(self): ... - def test_rowspace_dense(self): ... - -class TestOrthogonality(TestCase): - def test_dense_matrix(self): ... - def test_sparse_matrix(self): ... diff --git a/scipy-stubs/optimize/_trustregion_constr/tests/test_qp_subproblem.pyi b/scipy-stubs/optimize/_trustregion_constr/tests/test_qp_subproblem.pyi deleted file mode 100644 index 1e9150a0..00000000 --- a/scipy-stubs/optimize/_trustregion_constr/tests/test_qp_subproblem.pyi +++ /dev/null @@ -1,47 +0,0 @@ -from numpy.testing import TestCase - -from scipy.optimize._trustregion_constr.projections import projections as projections -from scipy.optimize._trustregion_constr.qp_subproblem import ( - box_intersections as box_intersections, - box_sphere_intersections as box_sphere_intersections, - eqp_kktfact as eqp_kktfact, - modified_dogleg as modified_dogleg, - projected_cg as projected_cg, - sphere_intersections as sphere_intersections, -) -from scipy.sparse import csc_matrix as csc_matrix - -class TestEQPDirectFactorization(TestCase): - def test_nocedal_example(self): ... - -class TestSphericalBoundariesIntersections(TestCase): - def test_2d_sphere_constraints(self): ... - def test_2d_sphere_constraints_line_intersections(self): ... - -class TestBoxBoundariesIntersections(TestCase): - def test_2d_box_constraints(self): ... - def test_2d_box_constraints_entire_line(self): ... - def test_3d_box_constraints(self): ... - def test_3d_box_constraints_entire_line(self): ... - -class TestBoxSphereBoundariesIntersections(TestCase): - def test_2d_box_constraints(self): ... - def test_2d_box_constraints_entire_line(self): ... - -class TestModifiedDogleg(TestCase): - def test_cauchypoint_equalsto_newtonpoint(self): ... - def test_3d_example(self): ... - -class TestProjectCG(TestCase): - def test_nocedal_example(self): ... - def test_compare_with_direct_fact(self): ... - def test_trust_region_infeasible(self): ... - def test_trust_region_barely_feasible(self): ... - def test_hits_boundary(self): ... - def test_negative_curvature_unconstrained(self): ... - def test_negative_curvature(self): ... - def test_inactive_box_constraints(self): ... - def test_active_box_constraints_maximum_iterations_reached(self): ... - def test_active_box_constraints_hits_boundaries(self): ... - def test_active_box_constraints_hits_boundaries_infeasible_iter(self): ... - def test_active_box_constraints_negative_curvature(self): ... diff --git a/scipy-stubs/optimize/_trustregion_constr/tests/test_report.pyi b/scipy-stubs/optimize/_trustregion_constr/tests/test_report.pyi deleted file mode 100644 index ac6aaf8f..00000000 --- a/scipy-stubs/optimize/_trustregion_constr/tests/test_report.pyi +++ /dev/null @@ -1,5 +0,0 @@ -from scipy._typing import Untyped -from scipy.optimize import Bounds as Bounds, minimize as minimize - -def test_gh10880() -> Untyped: ... -def test_gh12922() -> Untyped: ... diff --git a/scipy-stubs/signal/__init__.pyi b/scipy-stubs/signal/__init__.pyi index 85d48264..7d0855ed 100644 --- a/scipy-stubs/signal/__init__.pyi +++ b/scipy-stubs/signal/__init__.pyi @@ -27,7 +27,3 @@ from ._spline_filters import * from ._upfirdn import upfirdn as upfirdn from ._waveforms import * from .windows import get_window as get_window -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/sparse/__init__.pyi b/scipy-stubs/sparse/__init__.pyi index 30dfc4ad..8ced5e01 100644 --- a/scipy-stubs/sparse/__init__.pyi +++ b/scipy-stubs/sparse/__init__.pyi @@ -27,8 +27,3 @@ from ._extract import * from ._lil import * from ._matrix import spmatrix as spmatrix from ._matrix_io import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -msg: str -test: Untyped diff --git a/scipy-stubs/sparse/csgraph/__init__.pyi b/scipy-stubs/sparse/csgraph/__init__.pyi index 1357d131..c5683d9b 100644 --- a/scipy-stubs/sparse/csgraph/__init__.pyi +++ b/scipy-stubs/sparse/csgraph/__init__.pyi @@ -31,8 +31,5 @@ from ._traversal import ( depth_first_order as depth_first_order, depth_first_tree as depth_first_tree, ) -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped __docformat__: str -test: Untyped diff --git a/scipy-stubs/sparse/csgraph/tests/__init__.pyi b/scipy-stubs/sparse/csgraph/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/sparse/csgraph/tests/test_connected_components.pyi b/scipy-stubs/sparse/csgraph/tests/test_connected_components.pyi deleted file mode 100644 index ad506e30..00000000 --- a/scipy-stubs/sparse/csgraph/tests/test_connected_components.pyi +++ /dev/null @@ -1,10 +0,0 @@ -from scipy.sparse import csgraph as csgraph, csr_array as csr_array - -def test_weak_connections(): ... -def test_strong_connections(): ... -def test_strong_connections2(): ... -def test_weak_connections2(): ... -def test_ticket1876(): ... -def test_fully_connected_graph(): ... -def test_int64_indices_undirected(): ... -def test_int64_indices_directed(): ... diff --git a/scipy-stubs/sparse/csgraph/tests/test_conversions.pyi b/scipy-stubs/sparse/csgraph/tests/test_conversions.pyi deleted file mode 100644 index 2f7f45ed..00000000 --- a/scipy-stubs/sparse/csgraph/tests/test_conversions.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from scipy.sparse import csr_matrix as csr_matrix -from scipy.sparse.csgraph import csgraph_from_dense as csgraph_from_dense, csgraph_to_dense as csgraph_to_dense - -def test_csgraph_from_dense(): ... -def test_csgraph_to_dense(): ... -def test_multiple_edges(): ... diff --git a/scipy-stubs/sparse/csgraph/tests/test_flow.pyi b/scipy-stubs/sparse/csgraph/tests/test_flow.pyi deleted file mode 100644 index 9af02c5b..00000000 --- a/scipy-stubs/sparse/csgraph/tests/test_flow.pyi +++ /dev/null @@ -1,22 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse import csc_matrix as csc_matrix, csr_matrix as csr_matrix -from scipy.sparse.csgraph import maximum_flow as maximum_flow - -methods: Untyped - -def test_raises_on_dense_input(): ... -def test_raises_on_csc_input(): ... -def test_raises_on_floating_point_input(): ... -def test_raises_on_non_square_input(): ... -def test_raises_when_source_is_sink(): ... -def test_raises_when_source_is_out_of_bounds(source, method): ... -def test_raises_when_sink_is_out_of_bounds(sink, method): ... -def test_simple_graph(method): ... -def test_bottle_neck_graph(method): ... -def test_backwards_flow(method): ... -def test_example_from_clrs_chapter_26_1(method): ... -def test_disconnected_graph(method): ... -def test_add_reverse_edges_large_graph(method): ... -def test_add_reverse_edges(a, b_data_expected): ... -def test_make_edge_pointers(a, expected): ... -def test_make_tails(a, expected): ... diff --git a/scipy-stubs/sparse/csgraph/tests/test_graph_laplacian.pyi b/scipy-stubs/sparse/csgraph/tests/test_graph_laplacian.pyi deleted file mode 100644 index 69726e86..00000000 --- a/scipy-stubs/sparse/csgraph/tests/test_graph_laplacian.pyi +++ /dev/null @@ -1,19 +0,0 @@ -from scipy import sparse as sparse -from scipy._lib._util import np_long as np_long, np_ulong as np_ulong -from scipy._typing import Untyped -from scipy.sparse import csgraph as csgraph - -def check_int_type(mat) -> Untyped: ... -def test_laplacian_value_error(): ... -def test_symmetric_graph_laplacian(): ... - -INT_DTYPES: Untyped -REAL_DTYPES: Untyped -COMPLEX_DTYPES: Untyped -DTYPES: Untyped - -def test_asymmetric_laplacian(use_out_degree, normed, copy, dtype, arr_type): ... -def test_sparse_formats(fmt, normed, copy): ... -def test_laplacian_symmetrized(arr_type, form): ... -def test_format(dtype, arr_type, normed, symmetrized, use_out_degree, form): ... -def test_format_error_message(): ... diff --git a/scipy-stubs/sparse/csgraph/tests/test_matching.pyi b/scipy-stubs/sparse/csgraph/tests/test_matching.pyi deleted file mode 100644 index 394fcb3f..00000000 --- a/scipy-stubs/sparse/csgraph/tests/test_matching.pyi +++ /dev/null @@ -1,27 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse import coo_matrix as coo_matrix, csr_matrix as csr_matrix, diags as diags -from scipy.sparse.csgraph import ( - maximum_bipartite_matching as maximum_bipartite_matching, - min_weight_full_bipartite_matching as min_weight_full_bipartite_matching, -) - -def test_maximum_bipartite_matching_raises_on_dense_input(): ... -def test_maximum_bipartite_matching_empty_graph(): ... -def test_maximum_bipartite_matching_empty_left_partition(): ... -def test_maximum_bipartite_matching_empty_right_partition(): ... -def test_maximum_bipartite_matching_graph_with_no_edges(): ... -def test_maximum_bipartite_matching_graph_that_causes_augmentation(): ... -def test_maximum_bipartite_matching_graph_with_more_rows_than_columns(): ... -def test_maximum_bipartite_matching_graph_with_more_columns_than_rows(): ... -def test_maximum_bipartite_matching_explicit_zeros_count_as_edges(): ... -def test_maximum_bipartite_matching_feasibility_of_result(): ... -def test_matching_large_random_graph_with_one_edge_incident_to_each_vertex(): ... -def test_min_weight_full_matching_trivial_graph(num_rows, num_cols): ... -def test_min_weight_full_matching_infeasible_problems(biadjacency_matrix): ... -def test_min_weight_full_matching_large_infeasible(): ... -def test_explicit_zero_causes_warning(): ... -def linear_sum_assignment_assertions(solver, array_type, sign, test_case): ... - -linear_sum_assignment_test_cases: Untyped - -def test_min_weight_full_matching_small_inputs(sign, test_case): ... diff --git a/scipy-stubs/sparse/csgraph/tests/test_pydata_sparse.pyi b/scipy-stubs/sparse/csgraph/tests/test_pydata_sparse.pyi deleted file mode 100644 index 2404d1cb..00000000 --- a/scipy-stubs/sparse/csgraph/tests/test_pydata_sparse.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from scipy._typing import Untyped - -pytestmark: Untyped -msg: str -sparse_params: Untyped - -def check_sparse_version(min_ver) -> Untyped: ... -def sparse_cls(request) -> Untyped: ... -def graphs(sparse_cls) -> Untyped: ... -def test_csgraph_equiv(func, graphs): ... -def test_connected_components(graphs): ... -def test_laplacian(graphs): ... -def test_order_search(graphs, func): ... -def test_tree_search(graphs, func): ... -def test_minimum_spanning_tree(graphs): ... -def test_maximum_flow(graphs): ... -def test_min_weight_full_bipartite_matching(graphs): ... -def test_nonzero_fill_value(graphs, func, fill_value, comp_func): ... diff --git a/scipy-stubs/sparse/csgraph/tests/test_reordering.pyi b/scipy-stubs/sparse/csgraph/tests/test_reordering.pyi deleted file mode 100644 index 404992d0..00000000 --- a/scipy-stubs/sparse/csgraph/tests/test_reordering.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from scipy.sparse import coo_matrix as coo_matrix, csc_matrix as csc_matrix, csr_matrix as csr_matrix -from scipy.sparse.csgraph import reverse_cuthill_mckee as reverse_cuthill_mckee, structural_rank as structural_rank - -def test_graph_reverse_cuthill_mckee(): ... -def test_graph_reverse_cuthill_mckee_ordering(): ... -def test_graph_structural_rank(): ... diff --git a/scipy-stubs/sparse/csgraph/tests/test_shortest_path.pyi b/scipy-stubs/sparse/csgraph/tests/test_shortest_path.pyi deleted file mode 100644 index ebd8dbbf..00000000 --- a/scipy-stubs/sparse/csgraph/tests/test_shortest_path.pyi +++ /dev/null @@ -1,56 +0,0 @@ -from scipy._typing import Untyped -from scipy.io import mmread as mmread -from scipy.sparse.csgraph import ( - NegativeCycleError as NegativeCycleError, - bellman_ford as bellman_ford, - construct_dist_matrix as construct_dist_matrix, - dijkstra as dijkstra, - johnson as johnson, - shortest_path as shortest_path, - yen as yen, -) - -directed_G: Untyped -undirected_G: Untyped -unweighted_G: Untyped -directed_SP: Untyped -directed_2SP_0_to_3: Untyped -directed_sparse_zero_G: Untyped -directed_sparse_zero_SP: Untyped -undirected_sparse_zero_G: Untyped -undirected_sparse_zero_SP: Untyped -directed_pred: Untyped -undirected_SP: Untyped -undirected_SP_limit_2: Untyped -undirected_SP_limit_0: Untyped -undirected_pred: Untyped -directed_negative_weighted_G: Untyped -directed_negative_weighted_SP: Untyped -methods: Untyped - -def test_dijkstra_limit(): ... -def test_directed(): ... -def test_undirected(): ... -def test_directed_sparse_zero(): ... -def test_undirected_sparse_zero(): ... -def test_dijkstra_indices_min_only(directed, SP_ans, indices): ... -def test_dijkstra_min_only_random(n): ... -def test_dijkstra_random(): ... -def test_gh_17782_segfault(): ... -def test_shortest_path_indices(): ... -def test_predecessors(): ... -def test_construct_shortest_path(): ... -def test_unweighted_path(): ... -def test_negative_cycles(): ... -def test_negative_weights(method): ... -def test_masked_input(): ... -def test_overwrite(): ... -def test_buffer(method): ... -def test_NaN_warnings(): ... -def test_sparse_matrices(): ... -def test_yen_directed(): ... -def test_yen_undirected(): ... -def test_yen_unweighted(): ... -def test_yen_no_paths(): ... -def test_yen_negative_weights(): ... -def test_20904(min_only, directed, return_predecessors, index_dtype, indices): ... diff --git a/scipy-stubs/sparse/csgraph/tests/test_spanning_tree.pyi b/scipy-stubs/sparse/csgraph/tests/test_spanning_tree.pyi deleted file mode 100644 index b44f0f62..00000000 --- a/scipy-stubs/sparse/csgraph/tests/test_spanning_tree.pyi +++ /dev/null @@ -1,4 +0,0 @@ -from scipy.sparse import csr_matrix as csr_matrix -from scipy.sparse.csgraph import minimum_spanning_tree as minimum_spanning_tree - -def test_minimum_spanning_tree(): ... diff --git a/scipy-stubs/sparse/csgraph/tests/test_traversal.pyi b/scipy-stubs/sparse/csgraph/tests/test_traversal.pyi deleted file mode 100644 index 345f3f88..00000000 --- a/scipy-stubs/sparse/csgraph/tests/test_traversal.pyi +++ /dev/null @@ -1,13 +0,0 @@ -from scipy.sparse import csr_array as csr_array -from scipy.sparse.csgraph import ( - breadth_first_tree as breadth_first_tree, - csgraph_from_dense as csgraph_from_dense, - csgraph_to_dense as csgraph_to_dense, - depth_first_tree as depth_first_tree, -) - -def test_graph_breadth_first(): ... -def test_graph_depth_first(): ... -def test_graph_breadth_first_trivial_graph(): ... -def test_graph_depth_first_trivial_graph(): ... -def test_int64_indices(tree_func, directed): ... diff --git a/scipy-stubs/sparse/linalg/__init__.pyi b/scipy-stubs/sparse/linalg/__init__.pyi index 07426d01..fae4a42f 100644 --- a/scipy-stubs/sparse/linalg/__init__.pyi +++ b/scipy-stubs/sparse/linalg/__init__.pyi @@ -8,7 +8,3 @@ from ._matfuncs import * from ._norm import * from ._onenormest import * from ._special_sparse_arrays import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/sparse/linalg/_dsolve/__init__.pyi b/scipy-stubs/sparse/linalg/_dsolve/__init__.pyi index dac06473..e6729baf 100644 --- a/scipy-stubs/sparse/linalg/_dsolve/__init__.pyi +++ b/scipy-stubs/sparse/linalg/_dsolve/__init__.pyi @@ -1,7 +1,3 @@ from . import linsolve as linsolve from ._superlu import SuperLU as SuperLU from .linsolve import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/sparse/linalg/_dsolve/tests/__init__.pyi b/scipy-stubs/sparse/linalg/_dsolve/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/sparse/linalg/_dsolve/tests/test_linsolve.pyi b/scipy-stubs/sparse/linalg/_dsolve/tests/test_linsolve.pyi deleted file mode 100644 index 8bf1fea2..00000000 --- a/scipy-stubs/sparse/linalg/_dsolve/tests/test_linsolve.pyi +++ /dev/null @@ -1,103 +0,0 @@ -import numpy as np - -from scipy._lib._testutils import check_free_memory as check_free_memory -from scipy._lib._util import ComplexWarning as ComplexWarning -from scipy._typing import Untyped -from scipy.linalg import inv as inv, norm as norm -from scipy.sparse import ( - SparseEfficiencyWarning as SparseEfficiencyWarning, - bsr_matrix as bsr_matrix, - csc_matrix as csc_matrix, - csr_matrix as csr_matrix, - dok_matrix as dok_matrix, - identity as identity, - issparse as issparse, - lil_matrix as lil_matrix, - spdiags as spdiags, -) -from scipy.sparse.linalg import SuperLU as SuperLU -from scipy.sparse.linalg._dsolve import ( - MatrixRankWarning as MatrixRankWarning, - factorized as factorized, - spilu as spilu, - splu as splu, - spsolve as spsolve, - spsolve_triangular as spsolve_triangular, - use_solver as use_solver, -) - -sup_sparse_efficiency: Untyped -has_umfpack: bool - -def toarray(a) -> Untyped: ... -def setup_bug_8278() -> Untyped: ... - -class TestFactorized: - n: Untyped - A: Untyped - def setup_method(self): ... - def test_singular_without_umfpack(self): ... - def test_singular_with_umfpack(self): ... - def test_non_singular_without_umfpack(self): ... - def test_non_singular_with_umfpack(self): ... - def test_cannot_factorize_nonsquare_matrix_without_umfpack(self): ... - def test_factorizes_nonsquare_matrix_with_umfpack(self): ... - def test_call_with_incorrectly_sized_matrix_without_umfpack(self): ... - def test_call_with_incorrectly_sized_matrix_with_umfpack(self): ... - def test_call_with_cast_to_complex_without_umfpack(self): ... - def test_call_with_cast_to_complex_with_umfpack(self): ... - def test_assume_sorted_indices_flag(self): ... - def test_bug_8278(self): ... - -class TestLinsolve: - def setup_method(self): ... - def test_singular(self): ... - def test_singular_gh_3312(self): ... - def test_twodiags(self, format: str, idx_dtype: np.dtype): ... - def test_bvector_smoketest(self): ... - def test_bmatrix_smoketest(self): ... - def test_non_square(self): ... - def test_example_comparison(self): ... - def test_shape_compatibility(self): ... - def test_ndarray_support(self): ... - def test_gssv_badinput(self) -> Untyped: ... - def test_sparsity_preservation(self): ... - def test_dtype_cast(self): ... - def test_bug_8278(self): ... - -class TestSplu: - n: Untyped - A: Untyped - def setup_method(self): ... - def test_splu_smoketest(self): ... - def test_spilu_smoketest(self): ... - def test_spilu_drop_rule(self): ... - def test_splu_nnz0(self): ... - def test_spilu_nnz0(self): ... - def test_splu_basic(self): ... - def test_splu_perm(self): ... - def test_natural_permc(self, splu_fun, rtol): ... - def test_lu_refcount(self): ... - def test_bad_inputs(self): ... - def test_superlu_dlamch_i386_nan(self): ... - def test_lu_attr(self): ... - def test_threads_parallel(self): ... - def test_singular_matrix(self): ... - -class TestGstrsErrors: - A: Untyped - b: Untyped - def setup_method(self): ... - def test_trans(self): ... - def test_shape_LU(self): ... - def test_shape_b(self): ... - def test_types_differ(self): ... - def test_types_unsupported(self): ... - -class TestSpsolveTriangular: - def setup_method(self): ... - def test_zero_diagonal(self, fmt): ... - def test_singular(self, fmt): ... - def test_bad_shape(self): ... - def test_input_types(self): ... - def test_random(self, n, m, lower, format, unit_diagonal, choice_of_A, choice_of_b) -> Untyped: ... diff --git a/scipy-stubs/sparse/linalg/_eigen/__init__.pyi b/scipy-stubs/sparse/linalg/_eigen/__init__.pyi index 957c089f..c192ee35 100644 --- a/scipy-stubs/sparse/linalg/_eigen/__init__.pyi +++ b/scipy-stubs/sparse/linalg/_eigen/__init__.pyi @@ -2,7 +2,3 @@ from . import arpack as arpack from ._svds import svds as svds from .arpack import * from .lobpcg import * -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/sparse/linalg/_eigen/tests/__init__.pyi b/scipy-stubs/sparse/linalg/_eigen/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/sparse/linalg/_eigen/tests/test_svds.pyi b/scipy-stubs/sparse/linalg/_eigen/tests/test_svds.pyi deleted file mode 100644 index 6bd103cc..00000000 --- a/scipy-stubs/sparse/linalg/_eigen/tests/test_svds.pyi +++ /dev/null @@ -1,65 +0,0 @@ -from scipy._typing import Untyped -from scipy.linalg import null_space as null_space, svd as svd -from scipy.sparse import csc_matrix as csc_matrix, issparse as issparse, random as random, spdiags as spdiags -from scipy.sparse.linalg import LinearOperator as LinearOperator, aslinearoperator as aslinearoperator, svds as svds -from scipy.sparse.linalg._eigen.arpack import ArpackNoConvergence as ArpackNoConvergence - -def sorted_svd(m, k, which: str = "LM") -> Untyped: ... - -class CheckingLinearOperator(LinearOperator): - A: Untyped - dtype: Untyped - shape: Untyped - def __init__(self, A) -> None: ... - -class SVDSCommonTests: - solver: Untyped - def test_svds_input_validation_A(self, args): ... - def test_svds_input_validation_k_1(self, k): ... - def test_svds_input_validation_k_2(self): ... - def test_svds_input_validation_tol_1(self, tol): ... - def test_svds_input_validation_tol_2(self, tol): ... - def test_svds_input_validation_which(self, which): ... - def test_svds_input_validation_v0_1(self, transpose, n): ... - def test_svds_input_validation_v0_2(self): ... - def test_svds_input_validation_v0_3(self, v0): ... - def test_svds_input_validation_maxiter_1(self, maxiter): ... - def test_svds_input_validation_maxiter_2(self): ... - def test_svds_input_validation_return_singular_vectors(self, rsv): ... - def test_svds_parameter_k_which(self, k, which): ... - def test_svds_parameter_tol(self) -> Untyped: ... - def test_svd_v0(self): ... - def test_svd_random_state(self): ... - def test_svd_random_state_2(self, random_state): ... - def test_svd_random_state_3(self, random_state): ... - def test_svd_maxiter(self): ... - def test_svd_return_singular_vectors(self, rsv, shape): ... - A1: Untyped - A2: Untyped - def test_svd_simple(self, A, k, real, transpose, lo_type): ... - def test_svd_linop(self) -> Untyped: ... - SHAPES: Untyped - def test_small_sigma_sparse(self, shape, dtype): ... - def test_svd_LM_ones_matrix(self, shape, dtype): ... - def test_zero_matrix(self, shape, dtype): ... - def test_small_sigma(self, shape, dtype): ... - def test_small_sigma2(self, dtype): ... - -class Test_SVDS_once: - def test_svds_input_validation_solver(self, solver): ... - -class Test_SVDS_ARPACK(SVDSCommonTests): - solver: str - def setup_method(self): ... - def test_svds_input_validation_ncv_1(self, ncv): ... - def test_svds_input_validation_ncv_2(self): ... - -class Test_SVDS_LOBPCG(SVDSCommonTests): - solver: str - def setup_method(self): ... - -class Test_SVDS_PROPACK(SVDSCommonTests): - solver: str - def setup_method(self): ... - def test_svd_LM_ones_matrix(self): ... - def test_svd_LM_zeros_matrix(self): ... diff --git a/scipy-stubs/sparse/linalg/_isolve/__init__.pyi b/scipy-stubs/sparse/linalg/_isolve/__init__.pyi index 67091c46..ee06c0f1 100644 --- a/scipy-stubs/sparse/linalg/_isolve/__init__.pyi +++ b/scipy-stubs/sparse/linalg/_isolve/__init__.pyi @@ -5,7 +5,3 @@ from .lsmr import lsmr as lsmr from .lsqr import lsqr as lsqr from .minres import minres as minres from .tfqmr import tfqmr as tfqmr -from scipy._lib._testutils import PytestTester as PytestTester -from scipy._typing import Untyped - -test: Untyped diff --git a/scipy-stubs/sparse/linalg/_isolve/tests/__init__.pyi b/scipy-stubs/sparse/linalg/_isolve/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/sparse/linalg/_isolve/tests/test_gcrotmk.pyi b/scipy-stubs/sparse/linalg/_isolve/tests/test_gcrotmk.pyi deleted file mode 100644 index f5b3e547..00000000 --- a/scipy-stubs/sparse/linalg/_isolve/tests/test_gcrotmk.pyi +++ /dev/null @@ -1,25 +0,0 @@ -from scipy._typing import Untyped -from scipy.linalg import norm as norm -from scipy.sparse import csr_matrix as csr_matrix, eye as eye, rand as rand -from scipy.sparse.linalg import splu as splu -from scipy.sparse.linalg._interface import LinearOperator as LinearOperator -from scipy.sparse.linalg._isolve import gcrotmk as gcrotmk, gmres as gmres - -Am: Untyped -b: Untyped -count: Untyped - -def matvec(v) -> Untyped: ... - -A: Untyped - -def do_solve(**kw) -> Untyped: ... - -class TestGCROTMK: - def test_preconditioner(self): ... - def test_arnoldi(self): ... - def test_cornercase(self): ... - def test_nans(self): ... - def test_truncate(self): ... - def test_CU(self): ... - def test_denormals(self): ... diff --git a/scipy-stubs/sparse/linalg/_isolve/tests/test_iterative.pyi b/scipy-stubs/sparse/linalg/_isolve/tests/test_iterative.pyi deleted file mode 100644 index 8171d630..00000000 --- a/scipy-stubs/sparse/linalg/_isolve/tests/test_iterative.pyi +++ /dev/null @@ -1,70 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse import csr_matrix as csr_matrix, kronsum as kronsum, spdiags as spdiags -from scipy.sparse.linalg import LinearOperator as LinearOperator, aslinearoperator as aslinearoperator -from scipy.sparse.linalg._isolve import ( - bicg as bicg, - bicgstab as bicgstab, - cg as cg, - cgs as cgs, - gcrotmk as gcrotmk, - gmres as gmres, - lgmres as lgmres, - minres as minres, - qmr as qmr, - tfqmr as tfqmr, -) - -CB_TYPE_FILTER: str - -def solver(request) -> Untyped: ... - -class Case: - name: Untyped - A: Untyped - b: Untyped - skip: Untyped - nonconvergence: Untyped - def __init__(self, name, A, b: Untyped | None = None, skip: Untyped | None = None, nonconvergence: Untyped | None = None): ... - -class SingleTest: - A: Untyped - b: Untyped - solver: Untyped - name: Untyped - convergence: Untyped - def __init__(self, A, b, solver, casename, convergence: bool = True): ... - -class IterativeParams: - cases: Untyped - def __init__(self) -> None: ... - def generate_tests(self) -> Untyped: ... - -cases: Untyped - -def case(request) -> Untyped: ... -def test_maxiter(case): ... -def test_convergence(case): ... -def test_precond_dummy(case) -> Untyped: ... -def test_precond_inverse(case) -> Untyped: ... -def test_atol(solver): ... -def test_zero_rhs(solver): ... -def test_maxiter_worsening(solver): ... -def test_x0_working(solver): ... -def test_x0_equals_Mb(case): ... -def test_x0_solves_problem_exactly(solver): ... -def test_show(case, capsys): ... -def test_positional_error(solver): ... -def test_invalid_atol(solver, atol): ... - -class TestQMR: - def test_leftright_precond(self) -> Untyped: ... - -class TestGMRES: - def test_basic(self): ... - def test_callback(self) -> Untyped: ... - def test_abi(self): ... - def test_atol_legacy(self): ... - def test_defective_precond_breakdown(self): ... - def test_defective_matrix_breakdown(self): ... - def test_callback_type(self): ... - def test_callback_x_monotonic(self): ... diff --git a/scipy-stubs/sparse/linalg/_isolve/tests/test_lgmres.pyi b/scipy-stubs/sparse/linalg/_isolve/tests/test_lgmres.pyi deleted file mode 100644 index 0df81af6..00000000 --- a/scipy-stubs/sparse/linalg/_isolve/tests/test_lgmres.pyi +++ /dev/null @@ -1,26 +0,0 @@ -from scipy._typing import Untyped -from scipy.linalg import norm as norm -from scipy.sparse import csr_matrix as csr_matrix, eye as eye, rand as rand -from scipy.sparse.linalg import splu as splu -from scipy.sparse.linalg._interface import LinearOperator as LinearOperator -from scipy.sparse.linalg._isolve import gmres as gmres, lgmres as lgmres - -Am: Untyped -b: Untyped -count: Untyped - -def matvec(v) -> Untyped: ... - -A: Untyped - -def do_solve(**kw) -> Untyped: ... - -class TestLGMRES: - def test_preconditioner(self): ... - def test_outer_v(self): ... - def test_arnoldi(self): ... - def test_cornercase(self): ... - def test_nans(self): ... - def test_breakdown_with_outer_v(self): ... - def test_breakdown_underdetermined(self): ... - def test_denormals(self): ... diff --git a/scipy-stubs/sparse/linalg/_isolve/tests/test_lsmr.pyi b/scipy-stubs/sparse/linalg/_isolve/tests/test_lsmr.pyi deleted file mode 100644 index e64387d2..00000000 --- a/scipy-stubs/sparse/linalg/_isolve/tests/test_lsmr.pyi +++ /dev/null @@ -1,40 +0,0 @@ -from .test_lsqr import G as G, b as b -from scipy._typing import Untyped -from scipy.sparse import coo_matrix as coo_matrix -from scipy.sparse.linalg import lsmr as lsmr -from scipy.sparse.linalg._interface import aslinearoperator as aslinearoperator - -class TestLSMR: - n: int - m: int - def setup_method(self): ... - def assertCompatibleSystem(self, A, xtrue): ... - def testIdentityACase1(self): ... - def testIdentityACase2(self): ... - def testIdentityACase3(self): ... - def testBidiagonalA(self): ... - def testScalarB(self): ... - def testComplexX(self): ... - def testComplexX0(self): ... - def testComplexA(self): ... - def testComplexB(self): ... - def testColumnB(self): ... - def testInitialization(self): ... - -class TestLSMRReturns: - n: int - A: Untyped - xtrue: Untyped - Afun: Untyped - b: Untyped - x0: Untyped - x00: Untyped - returnValues: Untyped - returnValuesX0: Untyped - def setup_method(self): ... - def test_unchanged_x0(self): ... - def testNormr(self): ... - def testNormar(self): ... - def testNormx(self): ... - -def lowerBidiagonalMatrix(m, n) -> Untyped: ... diff --git a/scipy-stubs/sparse/linalg/_isolve/tests/test_lsqr.pyi b/scipy-stubs/sparse/linalg/_isolve/tests/test_lsqr.pyi deleted file mode 100644 index 5d307138..00000000 --- a/scipy-stubs/sparse/linalg/_isolve/tests/test_lsqr.pyi +++ /dev/null @@ -1,21 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse.linalg import lsqr as lsqr - -n: int -G: Untyped -normal: Untyped -norm: Untyped -gg: Untyped -hh: Untyped -b: Untyped -tol: float -atol_test: float -rtol_test: float -show: bool -maxit: Untyped - -def test_lsqr_basic(): ... -def test_gh_2466(): ... -def test_well_conditioned_problems(): ... -def test_b_shapes(): ... -def test_initialization(): ... diff --git a/scipy-stubs/sparse/linalg/_isolve/tests/test_minres.pyi b/scipy-stubs/sparse/linalg/_isolve/tests/test_minres.pyi deleted file mode 100644 index 8361a7bd..00000000 --- a/scipy-stubs/sparse/linalg/_isolve/tests/test_minres.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse.linalg._isolve import minres as minres - -def get_sample_problem() -> Untyped: ... -def test_singular(): ... -def test_x0_is_used_by(): ... -def test_shift(): ... -def test_asymmetric_fail(): ... -def test_minres_non_default_x0(): ... -def test_minres_precond_non_default_x0(): ... -def test_minres_precond_exact_x0(): ... diff --git a/scipy-stubs/sparse/linalg/_isolve/tests/test_utils.pyi b/scipy-stubs/sparse/linalg/_isolve/tests/test_utils.pyi deleted file mode 100644 index aae117f7..00000000 --- a/scipy-stubs/sparse/linalg/_isolve/tests/test_utils.pyi +++ /dev/null @@ -1 +0,0 @@ -def test_make_system_bad_shape(): ... diff --git a/scipy-stubs/sparse/linalg/tests/__init__.pyi b/scipy-stubs/sparse/linalg/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/sparse/linalg/tests/test_expm_multiply.pyi b/scipy-stubs/sparse/linalg/tests/test_expm_multiply.pyi deleted file mode 100644 index c0b9a564..00000000 --- a/scipy-stubs/sparse/linalg/tests/test_expm_multiply.pyi +++ /dev/null @@ -1,36 +0,0 @@ -from scipy._lib._util import np_long as np_long -from scipy._typing import Untyped -from scipy.sparse import SparseEfficiencyWarning as SparseEfficiencyWarning -from scipy.sparse.linalg import aslinearoperator as aslinearoperator -from scipy.sparse.linalg._expm_multiply import expm_multiply as expm_multiply - -IMPRECISE: Untyped -REAL_DTYPES: Untyped -COMPLEX_DTYPES: Untyped -DTYPES: Untyped - -def estimated(func) -> Untyped: ... -def less_than_or_close(a, b) -> Untyped: ... - -class TestExpmActionSimple: - def test_theta_monotonicity(self): ... - def test_p_max_default(self): ... - def test_p_max_range(self): ... - def test_onenormest_matrix_power(self): ... - def test_expm_multiply(self): ... - def test_matrix_vector_multiply(self): ... - def test_scaled_expm_multiply(self): ... - def test_scaled_expm_multiply_single_timepoint(self): ... - def test_sparse_expm_multiply(self): ... - def test_complex(self): ... - -class TestExpmActionInterval: - def test_sparse_expm_multiply_interval(self): ... - def test_expm_multiply_interval_vector(self): ... - def test_expm_multiply_interval_matrix(self): ... - def test_sparse_expm_multiply_interval_dtypes(self): ... - def test_expm_multiply_interval_status_0(self): ... - def test_expm_multiply_interval_status_1(self): ... - def test_expm_multiply_interval_status_2(self): ... - -def test_expm_multiply_dtype(dtype_a, dtype_b, b_is_matrix): ... diff --git a/scipy-stubs/sparse/linalg/tests/test_interface.pyi b/scipy-stubs/sparse/linalg/tests/test_interface.pyi deleted file mode 100644 index 597df860..00000000 --- a/scipy-stubs/sparse/linalg/tests/test_interface.pyi +++ /dev/null @@ -1,31 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse._sputils import matrix as matrix - -class TestLinearOperator: - A: Untyped - B: Untyped - C: Untyped - def setup_method(self): ... - def test_matvec(self) -> Untyped: ... - def test_matmul(self) -> Untyped: ... - -class TestAsLinearOperator: - cases: Untyped - dtype: Untyped - shape: Untyped - def setup_method(self) -> Untyped: ... - def test_basic(self): ... - def test_dot(self): ... - -def test_repr() -> Untyped: ... -def test_identity(): ... -def test_attributes() -> Untyped: ... -def matvec(x) -> Untyped: ... -def test_pickle(): ... -def test_inheritance() -> Untyped: ... -def test_dtypes_of_operator_sum(): ... -def test_no_double_init() -> Untyped: ... -def test_adjoint_conjugate(): ... -def test_ndim(): ... -def test_transpose_noconjugate(): ... -def test_sparse_matmat_exception() -> Untyped: ... diff --git a/scipy-stubs/sparse/linalg/tests/test_matfuncs.pyi b/scipy-stubs/sparse/linalg/tests/test_matfuncs.pyi deleted file mode 100644 index 8e05a065..00000000 --- a/scipy-stubs/sparse/linalg/tests/test_matfuncs.pyi +++ /dev/null @@ -1,49 +0,0 @@ -from scipy.linalg import logm as logm -from scipy.sparse import SparseEfficiencyWarning as SparseEfficiencyWarning, csc_array as csc_array, csc_matrix as csc_matrix -from scipy.sparse._sputils import matrix as matrix -from scipy.sparse.linalg._matfuncs import ( - MatrixPowerOperator as MatrixPowerOperator, - ProductOperator as ProductOperator, - expm as expm, - matrix_power as matrix_power, -) -from scipy.special import binom as binom, factorial as factorial - -def test_onenorm_matrix_power_nnm(): ... -def test_matrix_power(): ... - -class TestExpM: - def test_zero_ndarray(self): ... - def test_zero_sparse(self): ... - def test_zero_matrix(self): ... - def test_misc_types(self): ... - def test_bidiagonal_sparse(self): ... - def test_padecases_dtype_float(self): ... - def test_padecases_dtype_complex(self): ... - def test_padecases_dtype_sparse_float(self): ... - def test_padecases_dtype_sparse_complex(self): ... - def test_logm_consistency(self): ... - def test_integer_matrix(self): ... - def test_integer_matrix_2(self): ... - def test_triangularity_perturbation(self): ... - def test_burkardt_1(self): ... - def test_burkardt_2(self): ... - def test_burkardt_3(self): ... - def test_burkardt_4(self): ... - def test_burkardt_5(self): ... - def test_burkardt_6(self): ... - def test_burkardt_7(self): ... - def test_burkardt_8(self): ... - def test_burkardt_9(self): ... - def test_burkardt_10(self): ... - def test_burkardt_11(self): ... - def test_burkardt_12(self): ... - def test_burkardt_13(self): ... - def test_burkardt_14(self): ... - def test_pascal(self): ... - def test_matrix_input(self): ... - def test_exp_sinch_overflow(self): ... - -class TestOperators: - def test_product_operator(self): ... - def test_matrix_power_operator(self): ... diff --git a/scipy-stubs/sparse/linalg/tests/test_norm.pyi b/scipy-stubs/sparse/linalg/tests/test_norm.pyi deleted file mode 100644 index db6bb389..00000000 --- a/scipy-stubs/sparse/linalg/tests/test_norm.pyi +++ /dev/null @@ -1,16 +0,0 @@ -from scipy._typing import Untyped - -def test_sparray_norm(): ... - -class TestNorm: - b: Untyped - def setup_method(self): ... - def test_matrix_norm(self): ... - def test_matrix_norm_axis(self): ... - def test_vector_norm(self): ... - def test_norm_exceptions(self): ... - -class TestVsNumpyNorm: - def test_sparse_matrix_norms(self): ... - def test_sparse_matrix_norms_with_axis(self): ... - def test_sparse_vector_norms(self): ... diff --git a/scipy-stubs/sparse/linalg/tests/test_onenormest.pyi b/scipy-stubs/sparse/linalg/tests/test_onenormest.pyi deleted file mode 100644 index f2846011..00000000 --- a/scipy-stubs/sparse/linalg/tests/test_onenormest.pyi +++ /dev/null @@ -1,22 +0,0 @@ -import scipy.sparse.linalg -from scipy._typing import Untyped - -class MatrixProductOperator(scipy.sparse.linalg.LinearOperator): - A: Untyped - B: Untyped - ndim: int - shape: Untyped - def __init__(self, A, B) -> None: ... - @property - def T(self) -> Untyped: ... - -class TestOnenormest: - def test_onenormest_table_3_t_2(self): ... - def test_onenormest_table_4_t_7(self): ... - def test_onenormest_table_5_t_1(self): ... - def test_onenormest_table_6_t_1(self): ... - def test_onenormest_linear_operator(self): ... - def test_returns(self): ... - -class TestAlgorithm_2_2: - def test_randn_inv(self): ... diff --git a/scipy-stubs/sparse/linalg/tests/test_propack.pyi b/scipy-stubs/sparse/linalg/tests/test_propack.pyi deleted file mode 100644 index a006daef..00000000 --- a/scipy-stubs/sparse/linalg/tests/test_propack.pyi +++ /dev/null @@ -1,16 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse import csc_matrix as csc_matrix, csr_matrix as csr_matrix - -TOLS: Untyped - -def is_complex_type(dtype) -> Untyped: ... - -marks: Untyped - -def generate_matrix(constructor, n, m, f, dtype=..., rseed: int = 0, **kwargs) -> Untyped: ... -def assert_orthogonal(u1, u2, rtol, atol): ... -def check_svdp(n, m, constructor, dtype, k, irl_mode, which, f: float = 0.8): ... -def test_svdp(ctor, dtype, irl, which): ... -def test_examples(dtype, irl): ... -def test_shifts(shifts, dtype): ... -def test_shifts_accuracy(): ... diff --git a/scipy-stubs/sparse/linalg/tests/test_pydata_sparse.pyi b/scipy-stubs/sparse/linalg/tests/test_pydata_sparse.pyi deleted file mode 100644 index 1a0dbf5b..00000000 --- a/scipy-stubs/sparse/linalg/tests/test_pydata_sparse.pyi +++ /dev/null @@ -1,29 +0,0 @@ -from scipy._typing import Untyped - -pytestmark: Untyped -msg: str -sparse_params: Untyped -scipy_sparse_classes: Untyped - -def sparse_cls(request) -> Untyped: ... -def sp_sparse_cls(request) -> Untyped: ... -def same_matrix(sparse_cls, sp_sparse_cls) -> Untyped: ... -def matrices(sparse_cls) -> Untyped: ... -def test_isolve_gmres(matrices): ... -def test_lsmr(matrices): ... -def test_lsmr_output_shape(): ... -def test_lsqr(matrices): ... -def test_eigs(matrices): ... -def test_svds(matrices): ... -def test_lobpcg(matrices): ... -def test_spsolve(matrices): ... -def test_splu(matrices): ... -def test_spilu(matrices): ... -def test_spsolve_triangular(matrices): ... -def test_onenormest(matrices): ... -def test_norm(matrices): ... -def test_inv(matrices): ... -def test_expm(matrices): ... -def test_expm_multiply(matrices): ... -def test_eq(same_matrix): ... -def test_ne(same_matrix): ... diff --git a/scipy-stubs/sparse/linalg/tests/test_special_sparse_arrays.pyi b/scipy-stubs/sparse/linalg/tests/test_special_sparse_arrays.pyi deleted file mode 100644 index bec90be5..00000000 --- a/scipy-stubs/sparse/linalg/tests/test_special_sparse_arrays.pyi +++ /dev/null @@ -1,31 +0,0 @@ -from scipy._typing import Untyped -from scipy.linalg import eigh as eigh -from scipy.sparse import csgraph as csgraph, diags as diags -from scipy.sparse.linalg import LaplacianNd as LaplacianNd -from scipy.sparse.linalg._special_sparse_arrays import MikotaPair as MikotaPair, Sakurai as Sakurai - -INT_DTYPES: Untyped -REAL_DTYPES: Untyped -COMPLEX_DTYPES: Untyped -ALLDTYPES: Untyped - -class TestLaplacianNd: - def test_1d_specific_shape(self, bc): ... - def test_1d_with_graph_laplacian(self): ... - def test_eigenvalues(self, grid_shape, bc): ... - def test_eigenvectors(self, grid_shape, bc): ... - def test_toarray_tosparse_consistency(self, grid_shape, bc): ... - def test_linearoperator_shape_dtype(self, grid_shape, bc, dtype): ... - def test_dot(self, grid_shape, bc, dtype): ... - def test_boundary_conditions_value_error(self): ... - -class TestSakurai: - def test_specific_shape(self): ... - def test_linearoperator_shape_dtype(self, dtype): ... - def test_dot(self, dtype, argument_dtype): ... - -class TestMikotaPair: - tested_types: Untyped - def test_specific_shape(self): ... - def test_linearoperator_shape_dtype(self, dtype): ... - def test_dot(self, dtype, argument_dtype): ... diff --git a/scipy-stubs/sparse/tests/__init__.pyi b/scipy-stubs/sparse/tests/__init__.pyi deleted file mode 100644 index e69de29b..00000000 diff --git a/scipy-stubs/sparse/tests/test_arithmetic1d.pyi b/scipy-stubs/sparse/tests/test_arithmetic1d.pyi deleted file mode 100644 index b5f628a2..00000000 --- a/scipy-stubs/sparse/tests/test_arithmetic1d.pyi +++ /dev/null @@ -1,30 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse import coo_array as coo_array, csr_array as csr_array -from scipy.sparse._sputils import isscalarlike as isscalarlike - -spcreators: Untyped -math_dtypes: Untyped - -def toarray(a) -> Untyped: ... -def dat1d() -> Untyped: ... -def datsp_math_dtypes(dat1d) -> Untyped: ... - -class TestArithmetic1D: - def test_empty_arithmetic(self, spcreator): ... - def test_abs(self, spcreator): ... - def test_round(self, spcreator): ... - def test_elementwise_power(self, spcreator): ... - def test_real(self, spcreator): ... - def test_imag(self, spcreator): ... - def test_mul_scalar(self, spcreator, datsp_math_dtypes): ... - def test_rmul_scalar(self, spcreator, datsp_math_dtypes): ... - def test_sub(self, spcreator, datsp_math_dtypes): ... - def test_add0(self, spcreator, datsp_math_dtypes): ... - def test_elementwise_multiply(self, spcreator): ... - def test_elementwise_multiply_broadcast(self, spcreator): ... - def test_elementwise_divide(self, spcreator, dat1d): ... - def test_pow(self, spcreator): ... - def test_dot_scalar(self, spcreator, dat1d): ... - def test_matmul(self, spcreator): ... - def test_sub_dense(self, spcreator, datsp_math_dtypes): ... - def test_size_zero_matrix_arithmetic(self, spcreator): ... diff --git a/scipy-stubs/sparse/tests/test_array_api.pyi b/scipy-stubs/sparse/tests/test_array_api.pyi deleted file mode 100644 index c88e59a0..00000000 --- a/scipy-stubs/sparse/tests/test_array_api.pyi +++ /dev/null @@ -1,63 +0,0 @@ -from scipy._typing import Untyped - -sparray_types: Untyped -sparray_classes: Untyped -A: Untyped -B: Untyped -X: Untyped -sparrays: Untyped -square_sparrays: Untyped -eig_sparrays: Untyped -parametrize_sparrays: Untyped -parametrize_square_sparrays: Untyped -parametrize_eig_sparrays: Untyped - -def test_sum(A): ... -def test_mean(A): ... -def test_min_max(A): ... -def test_todense(A): ... -def test_indexing(A): ... -def test_dense_addition(A): ... -def test_sparse_addition(A): ... -def test_elementwise_mul(A): ... -def test_elementwise_rmul(A): ... -def test_matmul(A): ... -def test_power_operator(A): ... -def test_sparse_divide(A): ... -def test_sparse_dense_divide(A): ... -def test_dense_divide(A): ... -def test_no_A_attr(A): ... -def test_no_H_attr(A): ... -def test_getrow_getcol(A): ... -def test_as_linearoperator(A): ... -def test_inv(B): ... -def test_expm(B): ... -def test_expm_multiply(B): ... -def test_norm(A): ... -def test_onenormest(B): ... -def test_spsolve(B): ... -def test_spsolve_triangular(fmt): ... -def test_factorized(B): ... -def test_solvers(B, solver): ... -def test_lstsqr(A, solver): ... -def test_eigs(X): ... -def test_eigsh(X): ... -def test_svds(X): ... -def test_splu(): ... -def test_spilu(): ... -def test_index_dtype_compressed(cls, indices_attrs, expected_dtype): ... -def test_default_is_matrix_diags(): ... -def test_default_is_matrix_eye(): ... -def test_default_is_matrix_spdiags(): ... -def test_default_is_matrix_identity(): ... -def test_default_is_matrix_kron_dense(): ... -def test_default_is_matrix_kron_sparse(): ... -def test_default_is_matrix_kronsum(): ... -def test_default_is_matrix_random(): ... -def test_default_is_matrix_rand(): ... -def test_default_is_matrix_stacks(fn): ... -def test_blocks_default_construction_fn_matrices(): ... -def test_format_property(): ... -def test_issparse(): ... -def test_isspmatrix(): ... -def test_isspmatrix_format(fmt, fn): ... diff --git a/scipy-stubs/sparse/tests/test_base.pyi b/scipy-stubs/sparse/tests/test_base.pyi deleted file mode 100644 index 2e1d545e..00000000 --- a/scipy-stubs/sparse/tests/test_base.pyi +++ /dev/null @@ -1,416 +0,0 @@ -from collections.abc import Generator - -from scipy._lib._util import ComplexWarning as ComplexWarning -from scipy._lib.decorator import decorator as decorator -from scipy._typing import Untyped -from scipy.sparse import ( - SparseEfficiencyWarning as SparseEfficiencyWarning, - bsr_matrix as bsr_matrix, - coo_matrix as coo_matrix, - csc_matrix as csc_matrix, - csr_matrix as csr_matrix, - dia_matrix as dia_matrix, - dok_matrix as dok_matrix, - eye as eye, - issparse as issparse, - lil_matrix as lil_matrix, - sparray as sparray, -) -from scipy.sparse._sputils import ( - asmatrix as asmatrix, - get_index_dtype as get_index_dtype, - isscalarlike as isscalarlike, - matrix as matrix, - supported_dtypes as supported_dtypes, -) -from scipy.sparse.linalg import expm as expm, inv as inv, splu as splu - -IS_COLAB: Untyped - -def assert_in(member, collection, msg: Untyped | None = None): ... -def assert_array_equal_dtype(x, y, **kwargs): ... - -NON_ARRAY_BACKED_FORMATS: Untyped - -def sparse_may_share_memory(A, B) -> Untyped: ... - -sup_complex: Untyped - -def with_64bit_maxval_limit( - maxval_limit: Untyped | None = None, - random: bool = False, - fixed_dtype: Untyped | None = None, - downcast_maxval: Untyped | None = None, - assert_32bit: bool = False, -) -> Untyped: ... -def toarray(a) -> Untyped: ... - -class BinopTester: - def __add__(self, mat) -> Untyped: ... - def __mul__(self, mat) -> Untyped: ... - def __sub__(self, mat) -> Untyped: ... - def __radd__(self, mat) -> Untyped: ... - def __rmul__(self, mat) -> Untyped: ... - def __rsub__(self, mat) -> Untyped: ... - def __matmul__(self, mat) -> Untyped: ... - def __rmatmul__(self, mat) -> Untyped: ... - -class BinopTester_with_shape: - def __init__(self, shape) -> None: ... - def shape(self) -> Untyped: ... - def ndim(self) -> Untyped: ... - def __add__(self, mat) -> Untyped: ... - def __mul__(self, mat) -> Untyped: ... - def __sub__(self, mat) -> Untyped: ... - def __radd__(self, mat) -> Untyped: ... - def __rmul__(self, mat) -> Untyped: ... - def __rsub__(self, mat) -> Untyped: ... - def __matmul__(self, mat) -> Untyped: ... - def __rmatmul__(self, mat) -> Untyped: ... - -class ComparisonTester: - def __eq__(self, other) -> Untyped: ... - def __ne__(self, other) -> Untyped: ... - def __lt__(self, other) -> Untyped: ... - def __le__(self, other) -> Untyped: ... - def __gt__(self, other) -> Untyped: ... - def __ge__(self, other) -> Untyped: ... - -class _TestCommon: - math_dtypes = supported_dtypes - @classmethod - def init_class(cls): ... - def test_bool(self): ... - def test_bool_rollover(self): ... - def test_eq(self): ... - def test_ne(self): ... - def test_lt(self): ... - def test_gt(self): ... - def test_le(self): ... - def test_ge(self): ... - def test_empty(self): ... - def test_count_nonzero(self): ... - def test_invalid_shapes(self): ... - def test_repr(self): ... - def test_str_maxprint(self): ... - def test_str(self): ... - def test_empty_arithmetic(self): ... - def test_abs(self): ... - def test_round(self): ... - def test_elementwise_power(self): ... - def test_neg(self): ... - def test_real(self): ... - def test_imag(self): ... - def test_diagonal(self): ... - def test_trace(self): ... - def test_reshape(self): ... - def test_setdiag_comprehensive(self): ... - def test_setdiag(self): ... - def test_nonzero(self): ... - def test_numpy_nonzero(self): ... - def test_getrow(self): ... - def test_getcol(self): ... - def test_sum(self): ... - def test_sum_invalid_params(self): ... - def test_sum_dtype(self): ... - def test_sum_out(self): ... - def test_numpy_sum(self): ... - def test_mean(self): ... - def test_mean_invalid_params(self): ... - def test_mean_dtype(self): ... - def test_mean_out(self): ... - def test_numpy_mean(self): ... - def test_expm(self): ... - def test_inv(self): ... - def test_from_array(self): ... - def test_from_matrix(self): ... - def test_from_list(self): ... - def test_from_sparse(self): ... - def test_todense(self): ... - def test_toarray(self): ... - def test_astype(self): ... - def test_astype_immutable(self): ... - def test_asfptype(self): ... - def test_mul_scalar(self): ... - def test_rmul_scalar(self): ... - def test_rmul_scalar_type_error(self): ... - def test_add(self): ... - def test_radd(self): ... - def test_sub(self): ... - def test_rsub(self): ... - def test_add0(self): ... - def test_elementwise_multiply(self): ... - def test_elementwise_multiply_broadcast(self): ... - def test_elementwise_divide(self): ... - def test_pow(self): ... - def test_rmatvec(self): ... - def test_small_multiplication(self): ... - def test_star_vs_at_sign_for_sparray_and_spmatrix(self): ... - def test_binop_custom_type(self): ... - def test_binop_custom_type_with_shape(self): ... - scalar: Untyped - def test_mul_custom_type(self) -> Untyped: ... - def test_comparisons_custom_type(self): ... - def test_dot_scalar(self): ... - def test_matmul(self): ... - def test_matvec(self): ... - def test_matmat_sparse(self): ... - def test_matmat_dense(self): ... - def test_sparse_format_conversions(self): ... - def test_tobsr(self): ... - def test_transpose(self): ... - def test_add_dense(self): ... - def test_sub_dense(self): ... - def test_maximum_minimum(self): ... - def test_copy(self): ... - def test_iterator(self): ... - def test_size_zero_matrix_arithmetic(self): ... - def test_size_zero_conversions(self): ... - def test_pickle(self): ... - def test_unary_ufunc_overrides(self): ... - def test_resize(self): ... - def test_constructor1_base(self): ... - -class _TestInplaceArithmetic: - def test_inplace_dense(self): ... - def test_imul_scalar(self): ... - def test_idiv_scalar(self): ... - def test_inplace_success(self): ... - -class _TestGetSet: - def test_getelement(self): ... - def test_setelement(self): ... - def test_negative_index_assignment(self): ... - def test_scalar_assign_2(self): ... - def test_index_scalar_assign(self): ... - -class _TestSolve: - def test_solve(self): ... - -class _TestSlicing: - def test_dtype_preservation(self): ... - def test_dtype_preservation_empty_slice(self): ... - def test_get_horiz_slice(self): ... - def test_get_vert_slice(self): ... - def test_get_slices(self): ... - def test_non_unit_stride_2d_indexing(self): ... - def test_slicing_2(self): ... - def test_slicing_3(self): ... - def test_ellipsis_slicing(self): ... - def test_multiple_ellipsis_slicing(self): ... - -class _TestSlicingAssign: - def test_slice_scalar_assign(self): ... - def test_slice_assign_2(self): ... - def test_self_self_assignment(self): ... - def test_slice_assignment(self): ... - def test_sparsity_modifying_assignment(self): ... - def test_set_slice(self): ... - def test_assign_empty(self): ... - def test_assign_1d_slice(self): ... - -class _TestFancyIndexing: - def test_dtype_preservation_empty_index(self): ... - def test_bad_index(self): ... - def test_fancy_indexing(self): ... - def test_fancy_indexing_randomized(self): ... - def test_missized_masking(self): ... - def test_fancy_indexing_boolean(self): ... - def test_fancy_indexing_sparse_boolean(self): ... - def test_fancy_indexing_regression_3087(self): ... - def test_fancy_indexing_seq_assign(self): ... - def test_fancy_indexing_2d_assign(self): ... - def test_fancy_indexing_empty(self): ... - -def check_remains_sorted(X) -> Generator[None, None, None]: ... - -class _TestFancyIndexingAssign: - def test_bad_index_assign(self): ... - def test_fancy_indexing_set(self): ... - def test_fancy_assignment_dtypes(self): ... - def test_sequence_assignment(self): ... - def test_fancy_assign_empty(self): ... - -class _TestFancyMultidim: - def test_fancy_indexing_ndarray(self): ... - -class _TestFancyMultidimAssign: - def test_fancy_assign_ndarray(self): ... - def test_fancy_indexing_multidim_set(self): ... - def test_fancy_assign_list(self): ... - def test_fancy_assign_slice(self): ... - -class _TestArithmetic: - def test_add_sub(self): ... - def test_mu(self): ... - -class _TestMinMax: - def test_minmax(self): ... - def test_minmax_axis(self): ... - def test_nanminmax(self): ... - def test_minmax_invalid_params(self): ... - def test_numpy_minmax(self): ... - def test_argmax(self): ... - -class _TestGetNnzAxis: - def test_getnnz_axis(self): ... - -def sparse_test_class( - getset: bool = True, - slicing: bool = True, - slicing_assign: bool = True, - fancy_indexing: bool = True, - fancy_assign: bool = True, - fancy_multidim_indexing: bool = True, - fancy_multidim_assign: bool = True, - minmax: bool = True, - nnz_axis: bool = True, -) -> Untyped: ... - -class TestCSR(Untyped): - @classmethod - def spcreator(cls, *args, **kwargs) -> Untyped: ... - math_dtypes: Untyped - def test_constructor1(self): ... - def test_constructor2(self): ... - def test_constructor3(self): ... - def test_constructor4(self): ... - def test_constructor5(self): ... - def test_constructor6(self): ... - def test_constructor_smallcol(self): ... - def test_constructor_largecol(self): ... - def test_sort_indices(self): ... - def test_eliminate_zeros(self): ... - def test_ufuncs(self): ... - def test_unsorted_arithmetic(self): ... - def test_fancy_indexing_broadcast(self): ... - def test_has_sorted_indices(self): ... - def test_has_canonical_format(self): ... - def test_scalar_idx_dtype(self): ... - def test_binop_explicit_zeros(self): ... - -class TestCSC(Untyped): - @classmethod - def spcreator(cls, *args, **kwargs) -> Untyped: ... - math_dtypes: Untyped - def test_constructor1(self): ... - def test_constructor2(self): ... - def test_constructor3(self): ... - def test_constructor4(self): ... - def test_constructor5(self): ... - def test_constructor6(self): ... - def test_eliminate_zeros(self): ... - def test_sort_indices(self): ... - def test_ufuncs(self): ... - def test_unsorted_arithmetic(self): ... - def test_fancy_indexing_broadcast(self): ... - def test_scalar_idx_dtype(self): ... - -class TestDOK(Untyped): - spcreator = dok_matrix - math_dtypes: Untyped - def test_mult(self): ... - def test_add_nonzero(self): ... - def test_dok_divide_scalar(self): ... - def test_convert(self): ... - def test_ctor(self): ... - def test_ticket1160(self): ... - -class TestLIL(Untyped): - spcreator = lil_matrix - math_dtypes: Untyped - def test_dot(self): ... - def test_scalar_mul(self): ... - def test_truediv_scalar(self): ... - def test_inplace_ops(self): ... - def test_lil_iteration(self): ... - def test_lil_from_csr(self): ... - def test_fancy_indexing_lil(self): ... - def test_point_wise_multiply(self): ... - def test_lil_multiply_removal(self): ... - -class TestCOO(Untyped): - spcreator = coo_matrix - math_dtypes: Untyped - def test_constructor1(self): ... - def test_constructor2(self): ... - def test_constructor3(self): ... - def test_constructor4(self): ... - def test_constructor_data_ij_dtypeNone(self): ... - def test_iterator(self): ... - def test_todia_all_zeros(self): ... - def test_sum_duplicates(self): ... - def test_todok_duplicates(self): ... - def test_tocompressed_duplicates(self): ... - def test_eliminate_zeros(self): ... - def test_reshape_copy(self): ... - def test_large_dimensions_reshape(self): ... - -class TestDIA(Untyped): - spcreator = dia_matrix - math_dtypes: Untyped - def test_constructor1(self): ... - def test_iterator(self): ... - def test_setdiag_dtype(self): ... - def test_getnnz_axis(self): ... - def test_convert_gh14555(self): ... - def test_tocoo_gh10050(self): ... - def test_tocoo_tocsr_tocsc_gh19245(self): ... - def test_mul_scalar(self): ... - -class TestBSR(Untyped): - spcreator = bsr_matrix - math_dtypes: Untyped - def test_constructor1(self): ... - def test_constructor2(self): ... - def test_constructor3(self): ... - def test_constructor4(self): ... - def test_constructor5(self): ... - def test_default_dtype(self): ... - def test_bsr_tocsr(self): ... - def test_eliminate_zeros(self): ... - def test_eliminate_zeros_all_zero(self): ... - def test_bsr_matvec(self): ... - def test_bsr_matvecs(self): ... - def test_iterator(self): ... - def test_setdiag(self): ... - def test_resize_blocked(self): ... - def test_setdiag_comprehensive(self): ... - def test_scalar_idx_dtype(self): ... - -class _NonCanonicalMixin: - def spcreator(self, D, *args, sorted_indices: bool = False, **kwargs) -> Untyped: ... - def test_bool(self): ... - def test_getnnz_axis(self): ... - def test_empty(self): ... - -class _NonCanonicalCompressedMixin(_NonCanonicalMixin): ... - -class _NonCanonicalCSMixin(_NonCanonicalCompressedMixin): - def test_getelement(self): ... - def test_setitem_sparse(self): ... - def test_inv(self): ... - def test_solve(self): ... - -class TestCSRNonCanonical(_NonCanonicalCSMixin, TestCSR): ... -class TestCSCNonCanonical(_NonCanonicalCSMixin, TestCSC): ... - -class TestBSRNonCanonical(_NonCanonicalCompressedMixin, TestBSR): - def test_diagonal(self): ... - def test_expm(self): ... - -class TestCOONonCanonical(_NonCanonicalMixin, TestCOO): - def test_setdiag_noncanonical(self): ... - -def cases_64bit() -> Generator[Untyped, None, None]: ... - -class Test64Bit: - MAT_CLASSES: Untyped - def test_decorator_maxval_limit(self): ... - def test_decorator_maxval_random(self): ... - def test_resiliency_limit_10(self, cls, method_name): ... - def test_resiliency_random(self, cls, method_name): ... - def test_resiliency_all_32(self, cls, method_name): ... - def test_resiliency_all_64(self, cls, method_name): ... - def test_no_64(self, cls, method_name): ... - def test_downcast_intp(self): ... diff --git a/scipy-stubs/sparse/tests/test_common1d.pyi b/scipy-stubs/sparse/tests/test_common1d.pyi deleted file mode 100644 index 249bc6cd..00000000 --- a/scipy-stubs/sparse/tests/test_common1d.pyi +++ /dev/null @@ -1,52 +0,0 @@ -from scipy._lib._util import ComplexWarning as ComplexWarning -from scipy._typing import Untyped -from scipy.sparse import ( - bsr_array as bsr_array, - coo_array as coo_array, - csc_array as csc_array, - csr_array as csr_array, - dia_array as dia_array, - dok_array as dok_array, - lil_array as lil_array, -) -from scipy.sparse._sputils import matrix as matrix, supported_dtypes as supported_dtypes - -sup_complex: Untyped -spcreators: Untyped -math_dtypes: Untyped - -def dat1d() -> Untyped: ... -def datsp_math_dtypes(dat1d) -> Untyped: ... -def test_no_1d_support_in_init(spcreator): ... - -class TestCommon1D: - def test_create_empty(self, spcreator): ... - def test_invalid_shapes(self, spcreator): ... - def test_repr(self, spcreator, dat1d): ... - def test_str(self, spcreator, dat1d): ... - def test_neg(self, spcreator): ... - def test_1d_supported_init(self, spcreator): ... - def test_reshape_1d_tofrom_row_or_column(self, spcreator): ... - def test_reshape(self, spcreator): ... - def test_sum(self, spcreator): ... - def test_sum_invalid_params(self, spcreator): ... - def test_numpy_sum(self, spcreator): ... - def test_mean(self, spcreator): ... - def test_mean_invalid_params(self, spcreator): ... - def test_sum_dtype(self, spcreator): ... - def test_mean_dtype(self, spcreator): ... - def test_mean_out(self, spcreator): ... - def test_numpy_mean(self, spcreator): ... - def test_from_array(self, spcreator): ... - def test_from_list(self, spcreator): ... - def test_from_sparse(self, spcreator): ... - def test_toarray(self, spcreator, dat1d): ... - def test_add(self, spcreator, datsp_math_dtypes): ... - def test_radd(self, spcreator, datsp_math_dtypes): ... - def test_rsub(self, spcreator, datsp_math_dtypes): ... - def test_matvec(self, spcreator): ... - def test_rmatvec(self, spcreator, dat1d): ... - def test_transpose(self, spcreator, dat1d): ... - def test_add_dense_to_sparse(self, spcreator, datsp_math_dtypes): ... - def test_iterator(self, spcreator): ... - def test_resize(self, spcreator): ... diff --git a/scipy-stubs/sparse/tests/test_construct.pyi b/scipy-stubs/sparse/tests/test_construct.pyi deleted file mode 100644 index dee5c34b..00000000 --- a/scipy-stubs/sparse/tests/test_construct.pyi +++ /dev/null @@ -1,65 +0,0 @@ -from scipy._lib._testutils import check_free_memory as check_free_memory -from scipy._lib._util import check_random_state as check_random_state -from scipy._typing import Untyped -from scipy.sparse import ( - bsr_array as bsr_array, - bsr_matrix as bsr_matrix, - coo_array as coo_array, - coo_matrix as coo_matrix, - csc_array as csc_array, - csc_matrix as csc_matrix, - csr_array as csr_array, - csr_matrix as csr_matrix, - dia_array as dia_array, - dia_matrix as dia_matrix, - dok_array as dok_array, - lil_array as lil_array, - lil_matrix as lil_matrix, - sparray as sparray, - spmatrix as spmatrix, -) - -sparse_formats: Untyped - -class TestConstructUtils: - def test_singleton_array_constructor(self, cls): ... - def test_singleton_matrix_constructor(self, cls): ... - def test_spdiags(self): ... - def test_diags(self): ... - def test_diags_default(self): ... - def test_diags_default_bad(self): ... - def test_diags_bad(self): ... - def test_diags_vs_diag(self): ... - def test_diags_dtype(self): ... - def test_diags_one_diagonal(self): ... - def test_diags_empty(self): ... - def test_identity(self, identity): ... - def test_eye(self, eye): ... - def test_eye_one(self, eye): ... - def test_eye_array_vs_matrix(self): ... - def test_kron(self): ... - def test_kron_ndim_exceptions(self): ... - def test_kron_large(self): ... - def test_kronsum(self): ... - def test_kronsum_ndim_exceptions(self): ... - def test_vstack(self, coo_cls): ... - def test_vstack_matrix_or_array(self): ... - def test_vstack_1d_with_2d(self): ... - def test_hstack(self, coo_cls): ... - def test_hstack_matrix_or_array(self): ... - def test_block_creation(self, block_array): ... - def test_block_return_type(self): ... - def test_bmat_return_type(self): ... - def test_concatenate_int32_overflow(self): ... - def test_block_diag_basic(self): ... - def test_block_diag_scalar_1d_args(self): ... - def test_block_diag_1(self): ... - def test_block_diag_sparse_arrays(self): ... - def test_block_diag_return_type(self): ... - def test_random_sampling(self) -> Untyped: ... - def test_rand(self): ... - def test_randn(self): ... - def test_random_accept_str_dtype(self): ... - def test_random_sparse_matrix_returns_correct_number_of_non_zero_elements(self): ... - -def test_diags_array(): ... diff --git a/scipy-stubs/sparse/tests/test_coo.pyi b/scipy-stubs/sparse/tests/test_coo.pyi deleted file mode 100644 index 7d58fe8a..00000000 --- a/scipy-stubs/sparse/tests/test_coo.pyi +++ /dev/null @@ -1,27 +0,0 @@ -from scipy.sparse import coo_array as coo_array - -def test_shape_constructor(): ... -def test_dense_constructor(): ... -def test_dense_constructor_with_shape(): ... -def test_dense_constructor_with_inconsistent_shape(): ... -def test_1d_sparse_constructor(): ... -def test_1d_tuple_constructor(): ... -def test_1d_tuple_constructor_with_shape(): ... -def test_non_subscriptability(): ... -def test_reshape(): ... -def test_nnz(): ... -def test_transpose(): ... -def test_transpose_with_axis(): ... -def test_1d_row_and_col(): ... -def test_1d_toformats(): ... -def test_1d_resize(arg: int): ... -def test_1d_to_2d_resize(arg: tuple[int, int]): ... -def test_2d_to_1d_resize(arg: int): ... -def test_sum_duplicates(): ... -def test_eliminate_zeros(): ... -def test_1d_add_dense(): ... -def test_1d_add_sparse(): ... -def test_1d_matmul_vector(): ... -def test_1d_matmul_multivector(): ... -def test_2d_matmul_multivector(): ... -def test_1d_diagonal(): ... diff --git a/scipy-stubs/sparse/tests/test_csc.pyi b/scipy-stubs/sparse/tests/test_csc.pyi deleted file mode 100644 index c5e8448a..00000000 --- a/scipy-stubs/sparse/tests/test_csc.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from scipy.sparse import csc_matrix as csc_matrix, csr_matrix as csr_matrix, lil_matrix as lil_matrix - -def test_csc_getrow(): ... -def test_csc_getcol(): ... -def test_csc_empty_slices(matrix_input, axis, expected_shape): ... -def test_argmax_overflow(ax): ... diff --git a/scipy-stubs/sparse/tests/test_csr.pyi b/scipy-stubs/sparse/tests/test_csr.pyi deleted file mode 100644 index 04cf9915..00000000 --- a/scipy-stubs/sparse/tests/test_csr.pyi +++ /dev/null @@ -1,16 +0,0 @@ -from scipy import sparse as sparse -from scipy.sparse import ( - csc_array as csc_array, - csc_matrix as csc_matrix, - csr_array as csr_array, - csr_matrix as csr_matrix, - hstack as hstack, -) - -def test_csr_rowslice(): ... -def test_csr_getrow(): ... -def test_csr_getcol(): ... -def test_csr_empty_slices(matrix_input, axis, expected_shape): ... -def test_csr_bool_indexing(): ... -def test_csr_hstack_int64(): ... -def test_mixed_index_dtype_int_indexing(cls): ... diff --git a/scipy-stubs/sparse/tests/test_dok.pyi b/scipy-stubs/sparse/tests/test_dok.pyi deleted file mode 100644 index 9d51bfa1..00000000 --- a/scipy-stubs/sparse/tests/test_dok.pyi +++ /dev/null @@ -1,38 +0,0 @@ -from collections.abc import Generator - -from scipy._typing import Untyped -from scipy.sparse import dok_array as dok_array, dok_matrix as dok_matrix - -def d() -> Untyped: ... -def A() -> Untyped: ... -def Asp(request) -> Generator[Untyped, None, None]: ... -def test_dict_methods_covered(d, Asp): ... -def test_clear(d, Asp): ... -def test_copy(d, Asp): ... -def test_fromkeys_default(): ... -def test_fromkeys_positional(): ... -def test_fromkeys_iterator(): ... -def test_get(d, Asp): ... -def test_items(d, Asp): ... -def test_keys(d, Asp): ... -def test_pop(d, Asp): ... -def test_popitem(d, Asp): ... -def test_setdefault(d, Asp): ... -def test_update(d, Asp): ... -def test_values(d, Asp): ... -def test_dunder_getitem(d, Asp): ... -def test_dunder_setitem(d, Asp): ... -def test_dunder_delitem(d, Asp): ... -def test_dunder_contains(d, Asp): ... -def test_dunder_len(d, Asp): ... -def test_dunder_reversed(d, Asp): ... -def test_dunder_ior(d, Asp): ... -def test_dunder_or(d, Asp): ... -def test_dunder_ror(d, Asp): ... -def test_dunder_eq(A, Asp): ... -def test_dunder_ne(A, Asp): ... -def test_dunder_lt(A, Asp): ... -def test_dunder_gt(A, Asp): ... -def test_dunder_le(A, Asp): ... -def test_dunder_ge(A, Asp): ... -def test_dunder_iter(A, Asp): ... diff --git a/scipy-stubs/sparse/tests/test_extract.pyi b/scipy-stubs/sparse/tests/test_extract.pyi deleted file mode 100644 index 06841108..00000000 --- a/scipy-stubs/sparse/tests/test_extract.pyi +++ /dev/null @@ -1,10 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse import csr_array as csr_array, csr_matrix as csr_matrix, sparray as sparray - -class TestExtract: - cases: Untyped - def setup_method(self): ... - def test_find(self): ... - def test_tril(self): ... - def test_triu(self): ... - def test_array_vs_matrix(self): ... diff --git a/scipy-stubs/sparse/tests/test_indexing1d.pyi b/scipy-stubs/sparse/tests/test_indexing1d.pyi deleted file mode 100644 index 689adeea..00000000 --- a/scipy-stubs/sparse/tests/test_indexing1d.pyi +++ /dev/null @@ -1,41 +0,0 @@ -from collections.abc import Generator - -from .test_arithmetic1d import toarray as toarray -from scipy._typing import Untyped -from scipy.sparse import SparseEfficiencyWarning as SparseEfficiencyWarning, csr_array as csr_array, dok_array as dok_array - -formats_for_index1d: Untyped - -def check_remains_sorted(X) -> Generator[None, None, None]: ... - -class TestGetSet1D: - def test_None_index(self, spcreator): ... - def test_getitem_shape(self, spcreator): ... - def test_getelement(self, spcreator): ... - def test_setelement(self, spcreator): ... - -class TestSlicingAndFancy1D: - def test_get_array_index(self, spcreator): ... - def test_set_array_index(self, spcreator): ... - def test_dtype_preservation(self, spcreator): ... - def test_get_1d_slice(self, spcreator): ... - def test_slicing_idx_slice(self, spcreator): ... - def test_ellipsis_1d_slicing(self, spcreator): ... - def test_slice_scalar_assign(self, spcreator): ... - def test_slice_assign_2(self, spcreator): ... - def test_self_self_assignment(self, spcreator): ... - def test_slice_assignment(self, spcreator): ... - def test_set_slice(self, spcreator): ... - def test_assign_empty(self, spcreator): ... - def test_dtype_preservation_empty_index(self, spcreator): ... - def test_bad_index(self, spcreator): ... - def test_fancy_indexing_2darray(self, spcreator): ... - def test_fancy_indexing(self, spcreator): ... - def test_fancy_indexing_boolean(self, spcreator): ... - def test_fancy_indexing_sparse_boolean(self, spcreator): ... - def test_fancy_indexing_seq_assign(self, spcreator): ... - def test_fancy_indexing_empty(self, spcreator): ... - def test_bad_index_assign(self, spcreator): ... - def test_fancy_indexing_set(self, spcreator): ... - def test_sequence_assignment(self, spcreator): ... - def test_fancy_assign_empty(self, spcreator): ... diff --git a/scipy-stubs/sparse/tests/test_matrix_io.pyi b/scipy-stubs/sparse/tests/test_matrix_io.pyi deleted file mode 100644 index 08b19b84..00000000 --- a/scipy-stubs/sparse/tests/test_matrix_io.pyi +++ /dev/null @@ -1,23 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse import ( - bsr_matrix as bsr_matrix, - coo_matrix as coo_matrix, - csc_matrix as csc_matrix, - csr_array as csr_array, - csr_matrix as csr_matrix, - dia_matrix as dia_matrix, - dok_matrix as dok_matrix, - load_npz as load_npz, - save_npz as save_npz, - sparray as sparray, -) - -DATA_DIR: Untyped - -def test_save_and_load_random(): ... -def test_save_and_load_empty(): ... -def test_save_and_load_one_entry(): ... -def test_sparray_vs_spmatrix(): ... -def test_malicious_load() -> Untyped: ... -def test_py23_compatibility(): ... -def test_implemented_error(): ... diff --git a/scipy-stubs/sparse/tests/test_minmax1d.pyi b/scipy-stubs/sparse/tests/test_minmax1d.pyi deleted file mode 100644 index 6c541327..00000000 --- a/scipy-stubs/sparse/tests/test_minmax1d.pyi +++ /dev/null @@ -1,26 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse import ( - bsr_array as bsr_array, - bsr_matrix as bsr_matrix, - coo_array as coo_array, - coo_matrix as coo_matrix, - csc_array as csc_array, - csc_matrix as csc_matrix, - csr_array as csr_array, - csr_matrix as csr_matrix, -) -from scipy.sparse._sputils import isscalarlike as isscalarlike - -def toarray(a) -> Untyped: ... - -formats_for_minmax: Untyped -formats_for_minmax_supporting_1d: Untyped - -class Test_MinMaxMixin1D: - def test_minmax(self, spcreator): ... - def test_minmax_axis(self, spcreator): ... - def test_numpy_minmax(self, spcreator): ... - def test_argmax(self, spcreator): ... - -class Test_ShapeMinMax2DWithAxis: - def test_minmax(self, spcreator): ... diff --git a/scipy-stubs/sparse/tests/test_sparsetools.pyi b/scipy-stubs/sparse/tests/test_sparsetools.pyi deleted file mode 100644 index 6901ebb0..00000000 --- a/scipy-stubs/sparse/tests/test_sparsetools.pyi +++ /dev/null @@ -1,30 +0,0 @@ -from scipy._lib._testutils import check_free_memory as check_free_memory -from scipy._typing import Untyped -from scipy.sparse import ( - bsr_matrix as bsr_matrix, - coo_matrix as coo_matrix, - csc_matrix as csc_matrix, - csr_matrix as csr_matrix, - dia_matrix as dia_matrix, -) -from scipy.sparse._sputils import supported_dtypes as supported_dtypes - -def int_to_int8(n) -> Untyped: ... -def test_exception(): ... -def test_threads(): ... -def test_regression_std_vector_dtypes(): ... -def test_nnz_overflow(): ... - -class TestInt32Overflow: - n: int - def setup_method(self): ... - def teardown_method(self): ... - def test_coo_todense(self): ... - def test_matvecs(self): ... - def test_dia_matvec(self): ... - def test_bsr_1_block(self, op) -> Untyped: ... - def test_bsr_n_block(self, op) -> Untyped: ... - -def test_csr_matmat_int64_overflow(): ... -def test_upcast(): ... -def test_endianness(): ... diff --git a/scipy-stubs/sparse/tests/test_spfuncs.pyi b/scipy-stubs/sparse/tests/test_spfuncs.pyi deleted file mode 100644 index c2e5ee01..00000000 --- a/scipy-stubs/sparse/tests/test_spfuncs.pyi +++ /dev/null @@ -1,13 +0,0 @@ -from scipy._typing import Untyped -from scipy.sparse import bsr_matrix as bsr_matrix, csc_matrix as csc_matrix, csr_matrix as csr_matrix -from scipy.sparse._sparsetools import ( - bsr_scale_columns as bsr_scale_columns, - bsr_scale_rows as bsr_scale_rows, - csr_scale_columns as csr_scale_columns, - csr_scale_rows as csr_scale_rows, -) - -class TestSparseFunctions: - def test_scale_rows_and_cols(self): ... - def test_estimate_blocksize(self): ... - def test_count_blocks(self) -> Untyped: ... diff --git a/scipy-stubs/sparse/tests/test_sputils.pyi b/scipy-stubs/sparse/tests/test_sputils.pyi deleted file mode 100644 index 59e2c0ac..00000000 --- a/scipy-stubs/sparse/tests/test_sputils.pyi +++ /dev/null @@ -1,16 +0,0 @@ -from scipy.sparse._sputils import matrix as matrix - -class TestSparseUtils: - def test_upcast(self): ... - def test_getdtype(self): ... - def test_isscalarlike(self): ... - def test_isintlike(self): ... - def test_isshape(self): ... - def test_issequence(self): ... - def test_ismatrix(self): ... - def test_isdense(self): ... - def test_validateaxis(self): ... - def test_get_index_dtype(self): ... - def test_check_shape_overflow(self): ... - def test_matrix(self): ... - def test_asmatrix(self): ...