Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT, CI: mypy: fix typing errors + add mypy to CI #13613

Merged
merged 5 commits into from
Feb 27, 2021

Conversation

tirthasheshpatel
Copy link
Member

Reference issue

Closes #13606

What does this implement/fix?

I have tried to fix all the errors described in gh-13606. Also, I have also attempted to add a separate CI job for mypy on ubuntu-latest in the GitHub Actions pipelines. I am not very familiar with CI so criticism/opinions on those changes are welcome!

Additional information

I am not very familiar with the macOS GitHub Actions job and so haven't added mypy test for it currently. I can try adding something for macOS too with some further assistance!

Also, should we wait for gh-13448? It fixes some errors present in scipy.spatial.distance.

This fixes all the typing errors present on master.
This adds a very basic CI run for type checking
on ubuntu-latest in the github actions pipelines.
@tylerjereddy tylerjereddy added CI Items related to the CI tools such as CircleCI, GitHub Actions or Azure maintenance Items related to regular maintenance tasks labels Feb 26, 2021
Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI addition looks reasonable at first glance.

The failure may need another exemption for mypy?

 scipy/_lib/_uarray/_backend.py:96: error: syntax error in type comment  [syntax]
Found 1 error in 1 file (checked 662 source files)

@tirthasheshpatel
Copy link
Member Author

tirthasheshpatel commented Feb 26, 2021

The failure may need another exemption for mypy?

I don't see any errors with Python 3.8.0 and mypy 0.770 and mypy 0.780. So, this probably has something to do with Python 3.9.0a5 (which is currently being installed on ubuntu-latest). I checked with mypy 0.780 on Python 3.9.0a5 and this error disappears but gives rise to dozens more (can't tell why that's happening).

I think this may be related to python/mypy#8614 but need some confirmation to be completely sure.

Until we figure that out, one reasonable solution is to add # type: ignore to that line in scipy/_lib/_uarray/_backend.py.

Edit: Oh, sorry! Syntax errors can't be ignored in mypy.

Any other thoughts?

This just adds `# type: ignore` to the line in
`scipy/_lib/_uarray/_backend.py` to ignore the
syntax error detected by `mypy`. This error seems
to be present only on Python 3.9.0a5 with mypy 0.770.
`mypy` 0.770 was broken on Python 3.9.0a5. Hence, the requirement
file is altered to always download the latest `mypy` version.
See https://mail.python.org/pipermail/scipy-dev/2021-February/024580.html

Also, latest mypy version reported some more typing errors which have been
resolved in this commit.
@tirthasheshpatel
Copy link
Member Author

Thanks, @rgommers for the quick reply on the mailing list. I have made the changes to use the latest mypy version in the CI run and fixed all the typing errors. The Type Checking (3.9) run passes now!

Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tirthasheshpatel, this looks very good. All type annotation changes look correct to me. Regarding CI, there is one issue: if you do it as a completely separate job, then that job takes about 16 minutes to build SciPy, just in order to run mypy. Instead, it would be better to just add this as a separate step in the test_nightly job, the same command would be really fast because invoking runtests.py twice in a row reuses the same build.

@rgommers rgommers added this to the 1.7.0 milestone Feb 27, 2021
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now. CI is green: Success: no issues found in 671 source files.

Merging, thanks @tirthasheshpatel.

@rgommers rgommers merged commit 1f1fed6 into scipy:master Feb 27, 2021
@tirthasheshpatel tirthasheshpatel deleted the fix-typing branch February 27, 2021 18:57
@tirthasheshpatel
Copy link
Member Author

Thanks for the reviews and help, @rgommers!

@rgommers
Copy link
Member

Sorry, I was asleep - the CI changes do not take effect within a PR (for safety reasons, that's how GH Actions is designed). There are a lot of failures on the next PR that got this new CI:

##[group]Run python3.9 -u runtests.py --mypy
[36;1mpython3.9 -u runtests.py --mypy
shell: /usr/bin/bash -e {0}
##[endgroup]
Building, see build.log...
    ... build in progress (0:01:00.067355 elapsed)
    ... build in progress (0:02:00.139418 elapsed)
    ... build in progress (0:03:00.216931 elapsed)
    ... build in progress (0:04:00.286032 elapsed)
    ... build in progress (0:05:00.359659 elapsed)
    ... build in progress (0:06:00.433397 elapsed)
    ... build in progress (0:07:00.505155 elapsed)
    ... build in progress (0:08:00.575443 elapsed)
    ... build in progress (0:09:00.649100 elapsed)
    ... build in progress (0:10:00.721861 elapsed)
    ... build in progress (0:11:00.793121 elapsed)
    ... build in progress (0:12:00.861696 elapsed)
    ... build in progress (0:13:00.927206 elapsed)
    ... build in progress (0:14:00.998871 elapsed)
    ... build in progress (0:15:01.071669 elapsed)
    ... build in progress (0:16:01.144749 elapsed)
Build OK (0:16:08.153131 elapsed)
/home/runner/work/scipy/scipy/mypy.ini: While reading from '/home/runner/work/scipy/scipy/mypy.ini' [line 385]: section 'mypy-scipy.spatial.tests.test_distance' already exists
scipy/__config__.py:18: error: Need type annotation for 'lapack_mkl_info' (hint: "lapack_mkl_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:19: error: Need type annotation for 'openblas_lapack_info' (hint: "openblas_lapack_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:20: error: Need type annotation for 'openblas_clapack_info' (hint: "openblas_clapack_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:21: error: Need type annotation for 'flame_info' (hint: "flame_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:22: error: Need type annotation for 'atlas_3_10_threads_info' (hint: "atlas_3_10_threads_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:23: error: Need type annotation for 'atlas_3_10_info' (hint: "atlas_3_10_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:24: error: Need type annotation for 'atlas_threads_info' (hint: "atlas_threads_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:27: error: Need type annotation for 'blas_mkl_info' (hint: "blas_mkl_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:28: error: Need type annotation for 'blis_info' (hint: "blis_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:29: error: Need type annotation for 'openblas_info' (hint: "openblas_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:30: error: Need type annotation for 'atlas_3_10_blas_threads_info' (hint: "atlas_3_10_blas_threads_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:31: error: Need type annotation for 'atlas_3_10_blas_info' (hint: "atlas_3_10_blas_info: Dict[<type>, <type>] = ...")
scipy/__config__.py:32: error: Need type annotation for 'atlas_blas_threads_info' (hint: "atlas_blas_threads_info: Dict[<type>, <type>] = ...")
scipy/optimize/_trlib/__init__.py:1: error: Cannot find implementation or library stub for module named 'scipy.optimize._trlib._trlib'
scipy/linalg/_generate_pyx.py:546: error: Need type annotation for 'special_cases'
scipy/_lib/_bunch.py:205: error: All conditional function variants must have identical signatures
scipy/_lib/decorator.py:251: error: Module 'contextlib' has no attribute 'GeneratorContextManager'; maybe "_GeneratorContextManager", "ContextManager", or "AbstractContextManager"?
scipy/_lib/decorator.py:251: error: Name '_GeneratorContextManager' already defined (possibly by an import)
scipy/_lib/decorator.py:267: error: Cannot assign to a method
scipy/_lib/decorator.py:267: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[object], None]")
scipy/_lib/decorator.py:273: error: Cannot assign to a method
scipy/_lib/decorator.py:273: error: Incompatible types in assignment (expression has type "Callable[[Any, Any, VarArg(Any), KwArg(Any)], Any]", variable has type "Callable[[object], None]")
scipy/_lib/_pep440.py:74: error: Cannot assign to a type
scipy/_lib/_pep440.py:74: error: Incompatible types in assignment (expression has type "Infinity", variable has type "Type[Infinity]")
scipy/_lib/_pep440.py:109: error: Cannot assign to a type
scipy/_lib/_pep440.py:109: error: Incompatible types in assignment (expression has type "NegativeInfinity", variable has type "Type[NegativeInfinity]")
scipy/sparse/sparsetools.py:27: error: Cannot find implementation or library stub for module named 'scipy.sparse._sparsetools'
scipy/signal/_upfirdn.py:36: error: Cannot find implementation or library stub for module named 'scipy.signal._upfirdn_apply'
scipy/optimize/tests/test_cython_optimize.py:17: error: Module 'scipy.optimize.cython_optimize' has no attribute '_zeros'
scipy/io/matlab/tests/test_mio_utils.py:9: error: Cannot find implementation or library stub for module named 'scipy.io.matlab.mio_utils'
scipy/io/arff/arffread.py:98: error: Incompatible types in assignment (expression has type "str", base class "Attribute" defined the type as "None")
scipy/io/arff/arffread.py:902: error: "Callable[[Any], Any]" has no attribute "__test__"
scipy/fft/_pocketfft/helper.py:9: error: Cannot find implementation or library stub for module named 'scipy.fft._pocketfft.pypocketfft'
scipy/_lib/uarray.py:13: error: Cannot find implementation or library stub for module named 'uarray'
scipy/special/_ellip_harm.py:4: error: Cannot find implementation or library stub for module named 'scipy.special._ellip_harm_2'
scipy/io/netcdf.py:891: error: Incompatible types in assignment (expression has type "property", variable has type "Callable[[netcdf_variable], Any]")
scipy/io/netcdf.py:900: error: Incompatible types in assignment (expression has type "property", variable has type "Callable[[netcdf_variable], Any]")
scipy/spatial/tests/test_distance.py:49: error: Module 'scipy.spatial.distance' has no attribute '_validate_vector'
scipy/spatial/tests/test_distance.py:49: error: Module 'scipy.spatial.distance' has no attribute '_METRICS_NAMES'
scipy/spatial/tests/test_distance.py:55: error: Module 'scipy.spatial.distance' has no attribute 'matching'
scipy/spatial/tests/test_distance.py:62: error: Module 'scipy.spatial.distance' has no attribute 'wminkowski'; maybe "minkowski"?
scipy/io/matlab/tests/test_streams.py:19: error: Cannot find implementation or library stub for module named 'scipy.io.matlab.streams'
scipy/_lib/_testutils.py:125: error: Cannot find implementation or library stub for module named 'psutil'
scipy/conftest.py:8: error: Cannot find implementation or library stub for module named 'scipy._lib._fpumode'
scipy/fft/_pocketfft/realtransforms.py:50: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/realtransforms.py:52: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/realtransforms.py:55: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/realtransforms.py:57: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/realtransforms.py:103: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/realtransforms.py:105: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/realtransforms.py:108: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/realtransforms.py:110: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:35: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:37: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:66: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:68: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:101: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:103: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:199: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:201: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:227: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:229: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:267: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:269: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:295: error: "partial[Any]" has no attribute "__name__"
scipy/fft/_pocketfft/basic.py:297: error: "partial[Any]" has no attribute "__name__"
scipy/constants/__init__.py:326: error: Incompatible types in assignment (expression has type "str", variable has type "List[Tuple[Any, Any, Any]]")
scipy/fft/_helper.py:66: error: <nothing> has no attribute "__wrapped__"
scipy/_lib/_ccallback.py:19: error: Cannot find implementation or library stub for module named 'cffi'
scipy/_lib/tests/test_ccallback.py:9: error: Module 'scipy._lib' has no attribute '_test_ccallback'
scipy/_lib/tests/test_ccallback.py:13: error: Cannot find implementation or library stub for module named 'cffi'
scipy/_lib/tests/test_ccallback.py:13: note: See https://mypy.readthedocs.io/en/latest/running_mypy.html#missing-imports
scipy/__init__.py:109: error: Cannot determine type of '__SCIPY_SETUP__'
scipy/__init__.py:141: error: Not enough arguments for format string
scipy/__init__.py:153: error: Name 'fft' is not defined
scipy/sparse/sputils.py:17: error: Need type annotation for '_upcast_memo' (hint: "_upcast_memo: Dict[<type>, <type>] = ...")
scipy/sparse/_index.py:7: error: Name 'long' is not defined
scipy/sparse/_index.py:10: error: Incompatible types in assignment (expression has type "Tuple[Type[int], Type[integer[Any]]]", variable has type "Tuple[Type[int], Any, Type[integer[Any]]]")
scipy/sparse/dok.py:16: error: Module 'operator' has no attribute 'isSequenceType'
scipy/sparse/data.py:14: error: Need type annotation for '__all__' (hint: "__all__: List[<type>] = ...")
scipy/sparse/dia.py:13: error: Cannot find implementation or library stub for module named 'scipy.sparse._sparsetools'
scipy/sparse/coo.py:12: error: Cannot find implementation or library stub for module named 'scipy.sparse._sparsetools'
scipy/sparse/lil.py:17: error: Module 'scipy.sparse' has no attribute '_csparsetools'
scipy/sparse/csr.py:10: error: Cannot find implementation or library stub for module named 'scipy.sparse._sparsetools'
scipy/sparse/csc.py:10: error: Cannot find implementation or library stub for module named 'scipy.sparse._sparsetools'
scipy/sparse/compressed.py:2: error: Need type annotation for '__all__' (hint: "__all__: List[<type>] = ...")
scipy/sparse/compressed.py:14: error: Cannot find implementation or library stub for module named 'scipy.sparse._sparsetools'
scipy/sparse/bsr.py:17: error: Cannot find implementation or library stub for module named 'scipy.sparse._sparsetools'
scipy/sparse/csgraph/__init__.py:183: error: Cannot find implementation or library stub for module named 'scipy.sparse.csgraph._shortest_path'
scipy/sparse/csgraph/__init__.py:187: error: Cannot find implementation or library stub for module named 'scipy.sparse.csgraph._traversal'
scipy/sparse/csgraph/__init__.py:191: error: Cannot find implementation or library stub for module named 'scipy.sparse.csgraph._min_spanning_tree'
scipy/sparse/csgraph/__init__.py:192: error: Cannot find implementation or library stub for module named 'scipy.sparse.csgraph._flow'
scipy/sparse/csgraph/__init__.py:193: error: Cannot find implementation or library stub for module named 'scipy.sparse.csgraph._matching'
scipy/sparse/csgraph/__init__.py:196: error: Cannot find implementation or library stub for module named 'scipy.sparse.csgraph._reordering'
scipy/sparse/csgraph/__init__.py:197: error: Cannot find implementation or library stub for module named 'scipy.sparse.csgraph._tools'
scipy/sparse/spfuncs.py:8: error: Cannot find implementation or library stub for module named 'scipy.sparse._sparsetools'
scipy/sparse/tests/test_spfuncs.py:6: error: Cannot find implementation or library stub for module named 'scipy.sparse._sparsetools'
scipy/sparse/csgraph/_validation.py:3: error: Cannot find implementation or library stub for module named 'scipy.sparse.csgraph._tools'
scipy/signal/setup.py:25: error: Skipping analyzing 'pythran': found module but no type hints or library stubs
scipy/optimize/setup.py:101: error: Skipping analyzing 'pythran': found module but no type hints or library stubs
scipy/io/matlab/mio4.py:14: error: Cannot find implementation or library stub for module named 'scipy.io.matlab.mio_utils'
scipy/io/matlab/mio5.py:95: error: Cannot find implementation or library stub for module named 'scipy.io.matlab.mio5_utils'
scipy/io/matlab/mio5.py:104: error: Cannot find implementation or library stub for module named 'scipy.io.matlab.streams'
scipy/integrate/_quad_vec.py:465: error: "Callable[[Any, Any, Any, Any], Any]" has no attribute "cache_size"
scipy/integrate/_quad_vec.py:466: error: "Callable[[Any, Any, Any, Any], Any]" has no attribute "num_eval"
scipy/integrate/_quad_vec.py:585: error: "Callable[[Any, Any, Any, Any], Any]" has no attribute "num_eval"
scipy/integrate/_quad_vec.py:638: error: "Callable[[Any, Any, Any, Any], Any]" has no attribute "num_eval"
scipy/special/_basic.py:15: error: Module 'scipy.special' has no attribute 'specfun'
scipy/special/_basic.py:17: error: Cannot find implementation or library stub for module named 'scipy.special._comb'
scipy/sparse/linalg/isolve/utils.py:3: error: Need type annotation for '__all__' (hint: "__all__: List[<type>] = ...")
scipy/signal/bsplines.py:3: error: Module 'numpy.core.umath' has no attribute 'sqrt'
scipy/signal/bsplines.py:3: error: Module 'numpy.core.umath' has no attribute 'exp'
scipy/signal/bsplines.py:3: error: Module 'numpy.core.umath' has no attribute 'greater'
scipy/signal/bsplines.py:3: error: Module 'numpy.core.umath' has no attribute 'less'
scipy/signal/bsplines.py:3: error: Module 'numpy.core.umath' has no attribute 'cos'
scipy/signal/bsplines.py:3: error: Module 'numpy.core.umath' has no attribute 'add'
scipy/signal/bsplines.py:3: error: Module 'numpy.core.umath' has no attribute 'sin'
scipy/signal/bsplines.py:3: error: Module 'numpy.core.umath' has no attribute 'less_equal'
scipy/signal/bsplines.py:3: error: Module 'numpy.core.umath' has no attribute 'greater_equal'
scipy/signal/bsplines.py:7: error: Cannot find implementation or library stub for module named 'scipy.signal.spline'
scipy/signal/bsplines.py:71: error: Need type annotation for '_splinefunc_cache' (hint: "_splinefunc_cache: Dict[<type>, <type>] = ...")
scipy/ndimage/morphology.py:36: error: Module 'scipy.ndimage' has no attribute '_nd_image'
scipy/ndimage/measurements.py:34: error: Module 'scipy.ndimage' has no attribute '_ni_label'
scipy/ndimage/measurements.py:35: error: Module 'scipy.ndimage' has no attribute '_nd_image'
scipy/ndimage/interpolation.py:35: error: Module 'numpy.core.multiarray' has no attribute 'normalize_axis_index'
scipy/ndimage/interpolation.py:39: error: Module 'scipy.ndimage' has no attribute '_nd_image'
scipy/ndimage/fourier.py:32: error: Module 'numpy.core.multiarray' has no attribute 'normalize_axis_index'
scipy/ndimage/fourier.py:34: error: Module 'scipy.ndimage' has no attribute '_nd_image'
scipy/ndimage/filters.py:35: error: Module 'numpy.core.multiarray' has no attribute 'normalize_axis_index'
scipy/ndimage/filters.py:37: error: Module 'scipy.ndimage' has no attribute '_nd_image'
scipy/fftpack/pseudo_diffs.py:12: error: Module 'scipy.fftpack' has no attribute 'convolve'
scipy/fftpack/pseudo_diffs.py:17: error: Need type annotation for '_cache' (hint: "_cache: Dict[<type>, <type>] = ...")
scipy/ndimage/tests/test_c_api.py:5: error: Module 'scipy.ndimage' has no attribute '_ctest'; maybe "test"?
scipy/ndimage/tests/test_c_api.py:6: error: Module 'scipy.ndimage' has no attribute '_cytest'
scipy/linalg/lapack.py:821: error: Module 'scipy.linalg' has no attribute '_clapack'
scipy/linalg/lapack.py:826: error: Module 'scipy.linalg' has no attribute '_flapack_64'
scipy/linalg/lapack.py:839: error: Cannot find implementation or library stub for module named 'scipy.linalg._flapack'
scipy/linalg/lapack.py:849: error: Cannot determine type of 'cgegv'
scipy/linalg/lapack.py:850: error: Cannot determine type of 'dgegv'
scipy/linalg/lapack.py:851: error: Cannot determine type of 'sgegv'
scipy/linalg/lapack.py:852: error: Cannot determine type of 'zgegv'
scipy/linalg/lapack.py:884: error: Name 'ssyevr' is not defined
scipy/linalg/lapack.py:884: error: Name 'dsyevr' is not defined
scipy/linalg/lapack.py:884: error: Name 'cheevr' is not defined
scipy/linalg/lapack.py:884: error: Name 'zheevr' is not defined
scipy/linalg/lapack.py:885: error: Name 'ssyevx' is not defined
scipy/linalg/lapack.py:885: error: Name 'dsyevx' is not defined
scipy/linalg/lapack.py:885: error: Name 'cheevx' is not defined
scipy/linalg/lapack.py:885: error: Name 'zheevx' is not defined
scipy/linalg/lapack.py:886: error: Name 'ssygvd' is not defined
scipy/linalg/lapack.py:886: error: Name 'dsygvd' is not defined
scipy/linalg/lapack.py:886: error: Name 'chegvd' is not defined
scipy/linalg/lapack.py:886: error: Name 'zhegvd' is not defined
scipy/linalg/flinalg.py:11: error: Module 'scipy.linalg' has no attribute '_flinalg'
scipy/linalg/flinalg.py:20: error: Name 'has_column_major_storage' already defined on line 17
scipy/linalg/blas.py:215: error: Module 'scipy.linalg' has no attribute '_cblas'
scipy/linalg/blas.py:220: error: Module 'scipy.linalg' has no attribute '_fblas_64'
scipy/linalg/blas.py:228: error: Cannot find implementation or library stub for module named 'scipy.linalg._fblas'
scipy/linalg/basic.py:15: error: Cannot find implementation or library stub for module named 'scipy.linalg._solve_toeplitz'
scipy/linalg/basic.py:1233: error: "Callable[[Any, Any, Any, Any, Any, Any, Any], Any]" has no attribute "default_lapack_driver"
scipy/linalg/_matfuncs_sqrtm.py:16: error: Module 'scipy.linalg.lapack' has no attribute 'ztrsyl'
scipy/linalg/_matfuncs_sqrtm.py:16: error: Module 'scipy.linalg.lapack' has no attribute 'dtrsyl'
scipy/linalg/_matfuncs_sqrtm.py:24: error: Cannot find implementation or library stub for module named 'scipy.linalg._matfuncs_sqrtm_triu'
scipy/linalg/__init__.py:212: error: Cannot find implementation or library stub for module named 'scipy.linalg._decomp_update'
scipy/sparse/linalg/isolve/_gcrotmk.py:7: error: Module 'scipy.linalg' has no attribute 'qr_insert'
scipy/sparse/linalg/dsolve/linsolve.py:15: error: Cannot find implementation or library stub for module named 'scikits.umfpack'
scipy/sparse/linalg/dsolve/linsolve.py:15: error: Cannot find implementation or library stub for module named 'scikits'
scipy/sparse/linalg/dsolve/__init__.py:59: error: Cannot find implementation or library stub for module named 'scipy.sparse.linalg.dsolve._superlu'
scipy/sparse/linalg/isolve/iterative.py:8: error: Module 'scipy.sparse.linalg.isolve' has no attribute '_iterative'
scipy/sparse/linalg/matfuncs.py:20: error: Module 'scipy.sparse.linalg' has no attribute 'spsolve'
scipy/sparse/linalg/matfuncs.py:122: error: Cannot find implementation or library stub for module named 'sparse'
scipy/sparse/linalg/_expm_multiply.py:50: error: Cannot find implementation or library stub for module named 'sparse'
scipy/sparse/linalg/eigen/arpack/arpack.py:42: error: Module 'scipy.sparse.linalg.eigen.arpack' has no attribute '_arpack'
scipy/sparse/linalg/eigen/arpack/arpack.py:51: error: Module 'scipy.sparse.linalg' has no attribute 'gmres'
scipy/sparse/linalg/eigen/arpack/arpack.py:51: error: Module 'scipy.sparse.linalg' has no attribute 'splu'
scipy/io/tests/test_fortran.py:13: error: Module 'scipy.io' has no attribute '_test_fortran'
scipy/io/matlab/tests/test_mio5_utils.py:15: error: Cannot find implementation or library stub for module named 'scipy.io.matlab.streams'
scipy/io/matlab/tests/test_mio5_utils.py:17: error: Cannot find implementation or library stub for module named 'scipy.io.matlab.mio5_utils'
scipy/sparse/tests/test_base.py:46: error: Module 'scipy.sparse.linalg' has no attribute 'splu'
scipy/sparse/tests/test_base.py:3476: error: Unsupported dynamic base class "sparse_test_class"
scipy/sparse/tests/test_base.py:3729: error: Unsupported dynamic base class "sparse_test_class"
scipy/sparse/tests/test_base.py:3877: error: Unsupported dynamic base class "sparse_test_class"
scipy/sparse/tests/test_base.py:3978: error: Unsupported dynamic base class "sparse_test_class"
scipy/sparse/tests/test_base.py:4086: error: Unsupported dynamic base class "sparse_test_class"
scipy/sparse/tests/test_base.py:4219: error: Unsupported dynamic base class "sparse_test_class"
scipy/sparse/tests/test_base.py:4258: error: Unsupported dynamic base class "sparse_test_class"
scipy/sparse/tests/test_base.py:4649: error: Definition of "spmatrix" in base class "_NonCanonicalMixin" is incompatible with definition in base class "TestCSR"
scipy/sparse/tests/test_base.py:4653: error: Definition of "spmatrix" in base class "_NonCanonicalMixin" is incompatible with definition in base class "TestCSC"
scipy/sparse/tests/test_base.py:4657: error: Definition of "spmatrix" in base class "_NonCanonicalMixin" is incompatible with definition in base class "TestBSR"
scipy/sparse/tests/test_base.py:4672: error: Definition of "spmatrix" in base class "_NonCanonicalMixin" is incompatible with definition in base class "TestCOO"
scipy/sparse/linalg/tests/test_pydata_sparse.py:10: error: Cannot find implementation or library stub for module named 'sparse'
scipy/sparse/linalg/isolve/tests/test_utils.py:4: error: Module 'scipy.sparse.linalg' has no attribute 'utils'
scipy/sparse/linalg/isolve/tests/test_lsqr.py:7: error: Module 'scipy.sparse.linalg' has no attribute 'lsqr'
scipy/sparse/linalg/isolve/tests/test_lgmres.py:16: error: Module 'scipy.sparse.linalg' has no attribute 'splu'
scipy/sparse/linalg/isolve/tests/test_lgmres.py:35: error: Unexpected keyword argument "matvec" for "LinearOperator"
scipy/sparse/linalg/isolve/tests/test_gcrotmk.py:14: error: Module 'scipy.sparse.linalg' has no attribute 'splu'
scipy/sparse/linalg/isolve/tests/test_gcrotmk.py:33: error: Unexpected keyword argument "matvec" for "LinearOperator"
scipy/sparse/linalg/isolve/tests/demo_lgmres.py:11: error: Module has no attribute "_datasource"; maybe "DataSource"?
scipy/sparse/linalg/isolve/tests/demo_lgmres.py:29: error: Unexpected keyword argument "matvec" for "LinearOperator"
scipy/sparse/linalg/isolve/tests/demo_lgmres.py:37: error: Module has no attribute "gmres"
scipy/sparse/linalg/isolve/tests/demo_lgmres.py:45: error: Module has no attribute "lgmres"
scipy/sparse/linalg/isolve/tests/demo_lgmres.py:54: error: Module has no attribute "lgmres"
scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py:16: error: Module 'scipy.sparse.linalg' has no attribute 'eigs'
scipy/sparse/linalg/dsolve/tests/test_linsolve.py:18: error: Module 'scipy.sparse.linalg' has no attribute 'SuperLU'
scipy/sparse/linalg/dsolve/tests/test_linsolve.py:32: error: Cannot find implementation or library stub for module named 'scikits.umfpack'
scipy/sparse/linalg/dsolve/tests/test_linsolve.py:32: error: Cannot find implementation or library stub for module named 'scikits'
scipy/signal/windows/windows.py:2042: error: Need type annotation for '_needs_param' (hint: "_needs_param: Set[<type>] = ...")
scipy/optimize/_trustregion_constr/projections.py:8: error: Cannot find implementation or library stub for module named 'sksparse.cholmod'
scipy/odr/odrpack.py:42: error: Module 'scipy.odr' has no attribute '__odrpack'
scipy/linalg/_interpolative_backend.py:34: error: Cannot find implementation or library stub for module named 'scipy.linalg._interpolative'
scipy/linalg/tests/test_solve_toeplitz.py:4: error: Cannot find implementation or library stub for module named 'scipy.linalg._solve_toeplitz'
scipy/linalg/tests/test_fblas.py:105: error: Name 'TestSaxpy' already defined on line 101
scipy/linalg/tests/test_fblas.py:119: error: Name 'TestCaxpy' already defined on line 115
scipy/linalg/tests/test_fblas.py:158: error: Name 'TestSscal' already defined on line 154
scipy/linalg/tests/test_fblas.py:172: error: Name 'TestCscal' already defined on line 168
scipy/linalg/tests/test_fblas.py:236: error: Name 'TestScopy' already defined on line 232
scipy/linalg/tests/test_fblas.py:250: error: Name 'TestCcopy' already defined on line 246
scipy/linalg/tests/test_fblas.py:319: error: Name 'TestSswap' already defined on line 315
scipy/linalg/tests/test_fblas.py:333: error: Name 'TestCswap' already defined on line 329
scipy/linalg/tests/test_fblas.py:477: error: Name 'TestSgemv' already defined on line 430
scipy/linalg/tests/test_fblas.py:491: error: Name 'TestCgemv' already defined on line 487
scipy/linalg/tests/test_decomp_update.py:7: error: Cannot find implementation or library stub for module named 'scipy.linalg._decomp_update'
scipy/linalg/tests/test_cython_lapack.py:2: error: Module 'scipy.linalg' has no attribute 'cython_lapack'
scipy/linalg/tests/test_cython_blas.py:4: error: Cannot find implementation or library stub for module named 'scipy.linalg.cython_blas'
scipy/linalg/tests/test_blas.py:27: error: Module 'scipy.linalg' has no attribute '_cblas'
scipy/linalg/tests/test_blas.py:33: error: Unsupported operand types for + ("List[Type[floating[Any]]]" and "List[Type[complexfloating[Any, Any]]]")
scipy/sparse/linalg/isolve/tests/test_lsmr.py:26: error: Module 'scipy.sparse.linalg' has no attribute 'lsmr'
scipy/optimize/_trustregion_constr/tests/test_projections.py:10: error: Cannot find implementation or library stub for module named 'sksparse.cholmod'
scipy/optimize/_trustregion_constr/tests/test_projections.py:15: error: Incompatible types in assignment (expression has type "Tuple[str]", variable has type "Tuple[str, str]")
scipy/interpolate/ndgriddata.py:8: error: Cannot find implementation or library stub for module named 'scipy.interpolate.interpnd'
scipy/interpolate/interpolate.py:19: error: Module 'scipy.interpolate' has no attribute '_ppoly'
scipy/interpolate/interpolate.py:21: error: Cannot find implementation or library stub for module named 'scipy.interpolate.interpnd'
scipy/interpolate/_bsplines.py:4: error: Module 'numpy.core.multiarray' has no attribute 'normalize_axis_index'
scipy/interpolate/_bsplines.py:7: error: Module 'scipy.interpolate' has no attribute '_bspl'
scipy/integrate/_ivp/radau.py:4: error: Module 'scipy.sparse.linalg' has no attribute 'splu'
scipy/integrate/_ivp/radau.py:359: error: All conditional function variants must have identical signatures
scipy/integrate/_ivp/radau.py:366: error: All conditional function variants must have identical signatures
scipy/integrate/_ivp/bdf.py:4: error: Module 'scipy.sparse.linalg' has no attribute 'splu'
scipy/spatial/tests/test_kdtree.py:876: error: Cannot find implementation or library stub for module named 'cPickle'
scipy/spatial/tests/test__plotutils.py:4: error: Cannot find implementation or library stub for module named 'matplotlib'
scipy/spatial/tests/test__plotutils.py:6: error: Cannot find implementation or library stub for module named 'matplotlib.pyplot'
scipy/optimize/_remove_redundancy.py:11: error: Module 'scipy.linalg.blas' has no attribute 'dtrsm'
scipy/interpolate/tests/test_interpnd.py:9: error: Cannot find implementation or library stub for module named 'scipy.interpolate.interpnd'
scipy/interpolate/tests/test_fitpack.py:15: error: Cannot find implementation or library stub for module named 'scipy.interpolate.dfitpack'
scipy/interpolate/tests/test_bsplines.py:7: error: Module 'scipy.interpolate' has no attribute '_bspl'
scipy/interpolate/tests/test_bsplines.py:15: error: Cannot find implementation or library stub for module named 'scipy.interpolate._fitpack'
scipy/cluster/vq.py:73: error: Module 'scipy.cluster' has no attribute '_vq'; maybe "vq"?
scipy/cluster/hierarchy.py:135: error: Module 'scipy.cluster' has no attribute '_optimal_leaf_ordering'
scipy/cluster/hierarchy.py:2815: error: Cannot find implementation or library stub for module named 'matplotlib.pylab'
scipy/cluster/hierarchy.py:2815: error: Cannot find implementation or library stub for module named 'matplotlib'
scipy/cluster/hierarchy.py:2816: error: Cannot find implementation or library stub for module named 'matplotlib.patches'
scipy/cluster/hierarchy.py:2817: error: Cannot find implementation or library stub for module named 'matplotlib.collections'
scipy/cluster/hierarchy.py:2928: error: Assignment to variable 'e' outside except: block
scipy/cluster/hierarchy.py:2930: error: Assignment to variable 'e' outside except: block
scipy/optimize/_basinhopping.py:748: error: Dict entry 1 has incompatible type "str": "bool"; expected "str": "str"
scipy/optimize/zeros.py:4: error: Module 'scipy.optimize' has no attribute '_zeros'
scipy/optimize/tnc.py:35: error: Module 'scipy.optimize' has no attribute 'moduleTNC'
scipy/optimize/slsqp.py:20: error: Cannot find implementation or library stub for module named 'scipy.optimize._slsqp'
scipy/optimize/minpack.py:2: error: Module 'scipy.optimize' has no attribute '_minpack'
scipy/optimize/minpack.py:13: error: Name 'least_squares' already defined (by an import)
scipy/optimize/linesearch.py:16: error: Module 'scipy.optimize' has no attribute 'minpack2'
scipy/optimize/lbfgsb.py:38: error: Module 'scipy.optimize' has no attribute '_lbfgsb'
scipy/optimize/cobyla.py:17: error: Module 'scipy.optimize' has no attribute '_cobyla'; maybe "fmin_cobyla"?
scipy/optimize/cobyla.py:20: error: Module 'itertools' has no attribute 'izip'
scipy/optimize/_trustregion_ncg.py:8: error: Need type annotation for '__all__' (hint: "__all__: List[<type>] = ...")
scipy/optimize/_trustregion_dogleg.py:6: error: Need type annotation for '__all__' (hint: "__all__: List[<type>] = ...")
scipy/optimize/_trustregion.py:9: error: Need type annotation for '__all__' (hint: "__all__: List[<type>] = ...")
scipy/optimize/_lsap.py:13: error: Module 'scipy.optimize' has no attribute '_lsap_module'
scipy/optimize/_linprog_util.py:16: error: "Callable[[Type[_NT], Any, Any, Any, Any, Any, Any, Any], _NT]" has no attribute "__defaults__"
scipy/optimize/_linprog_rs.py:23: error: Cannot find implementation or library stub for module named 'scipy.optimize._bglu_dense'
scipy/optimize/_linprog_ip.py:31: error: Cannot find implementation or library stub for module named 'sksparse'
scipy/optimize/_linprog_ip.py:32: error: Cannot find implementation or library stub for module named 'sksparse.cholmod'
scipy/optimize/_linprog_ip.py:37: error: Cannot find implementation or library stub for module named 'scikits.umfpack'
scipy/optimize/_linprog_ip.py:37: error: Cannot find implementation or library stub for module named 'scikits'
scipy/optimize/_linprog_ip.py:106: error: All conditional function variants must have identical signatures
scipy/optimize/_linprog_ip.py:111: error: All conditional function variants must have identical signatures
scipy/optimize/_linprog_ip.py:745: error: All conditional function variants must have identical signatures
scipy/optimize/_linprog_highs.py:20: error: Cannot find implementation or library stub for module named 'scipy.optimize._highs._highs_wrapper'
scipy/optimize/_linprog_highs.py:21: error: Cannot find implementation or library stub for module named 'scipy.optimize._highs._highs_constants'
scipy/optimize/_linprog.py:95: error: Not all arguments converted during string formatting
scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py:441: error: All conditional function variants must have identical signatures
scipy/optimize/_lsq/trf.py:99: error: Module 'scipy.sparse.linalg' has no attribute 'lsmr'
scipy/optimize/_lsq/least_squares.py:9: error: Module 'scipy.optimize' has no attribute '_minpack'
scipy/optimize/_lsq/least_squares.py:882: error: All conditional function variants must have identical signatures
scipy/optimize/_lsq/dogbox.py:46: error: Module 'scipy.sparse.linalg' has no attribute 'lsmr'
scipy/optimize/__init__.py:416: error: Name 'least_squares' already defined (by an import)
scipy/optimize/__init__.py:416: error: Name 'lsq_linear' already defined (by an import)
scipy/optimize/_lsq/trf_linear.py:6: error: Module 'scipy.sparse.linalg' has no attribute 'lsmr'
scipy/optimize/_lsq/trf_linear.py:9: error: Cannot find implementation or library stub for module named 'scipy.optimize._lsq.givens_elimination'
scipy/optimize/_lsq/lsq_linear.py:5: error: Module 'scipy.sparse.linalg' has no attribute 'lsmr'
scipy/cluster/tests/test_vq.py:14: error: Module 'scipy.cluster' has no attribute '_vq'; maybe "vq"?
scipy/cluster/tests/test_hierarchy.py:49: error: Cannot find implementation or library stub for module named 'scipy.cluster._hierarchy'
scipy/optimize/_tstutils.py:119: error: Need type annotation for '_f6_cache' (hint: "_f6_cache: Dict[<type>, <type>] = ...")
scipy/optimize/_tstutils.py:152: error: No overload variant of "zip" matches argument types "List[str]", "object"
scipy/optimize/_tstutils.py:152: note: Possible overload variant:
scipy/optimize/_tstutils.py:152: note:     def [_T1, _T2] zip(__iter1, Iterable[_T1], Iterable[_T2]) -> Iterator[Tuple[_T1, _T2]]
scipy/optimize/_tstutils.py:152: note:     <5 more non-matching overloads not shown>
scipy/optimize/tests/test_linprog.py:11: error: Module 'scipy.sparse.linalg' has no attribute 'MatrixRankWarning'
scipy/optimize/tests/test_linprog.py:18: error: Cannot find implementation or library stub for module named 'scikits.umfpack'
scipy/optimize/tests/test_linprog.py:24: error: Cannot find implementation or library stub for module named 'sksparse'
scipy/optimize/tests/test_linprog.py:25: error: Cannot find implementation or library stub for module named 'sksparse.cholmod'
scipy/optimize/tests/test_linprog.py:1883: error: Need type annotation for 'options' (hint: "options: Dict[<type>, <type>] = ...")
scipy/optimize/tests/test_linprog.py:1956: error: Need type annotation for 'options' (hint: "options: Dict[<type>, <type>] = ...")
scipy/optimize/tests/test_linprog.py:1966: error: Need type annotation for 'options' (hint: "options: Dict[<type>, <type>] = ...")
scipy/optimize/tests/test_least_squares.py:170: error: List item 0 has incompatible type "Callable[[Any], Any]"; expected "str"
scipy/optimize/tests/test_lbfgsb_setulb.py:2: error: Module 'scipy.optimize' has no attribute '_lbfgsb'
scipy/integrate/_bvp.py:8: error: Module 'scipy.sparse.linalg' has no attribute 'splu'
scipy/integrate/_bvp.py:662: error: All conditional function variants must have identical signatures
scipy/integrate/_bvp.py:665: error: All conditional function variants must have identical signatures
scipy/integrate/_bvp.py:669: error: All conditional function variants must have identical signatures
scipy/optimize/tests/test_nonlin.py:35: error: "Callable[[Any], Any]" has no attribute "xin"
scipy/optimize/tests/test_nonlin.py:36: error: "Callable[[Any], Any]" has no attribute "KNOWN_BAD"
scipy/optimize/tests/test_nonlin.py:43: error: "Callable[[Any], Any]" has no attribute "xin"
scipy/optimize/tests/test_nonlin.py:44: error: "Callable[[Any], Any]" has no attribute "KNOWN_BAD"
scipy/optimize/tests/test_nonlin.py:52: error: "Callable[[Any], Any]" has no attribute "xin"
scipy/optimize/tests/test_nonlin.py:53: error: "Callable[[Any], Any]" has no attribute "KNOWN_BAD"
scipy/optimize/tests/test_nonlin.py:62: error: "Callable[[Any], Any]" has no attribute "xin"
scipy/optimize/tests/test_nonlin.py:63: error: "Callable[[Any], Any]" has no attribute "KNOWN_BAD"
scipy/optimize/tests/test_nonlin.py:71: error: "Callable[[Any], Any]" has no attribute "xin"
scipy/optimize/tests/test_nonlin.py:72: error: "Callable[[Any], Any]" has no attribute "KNOWN_BAD"
scipy/optimize/tests/test_nonlin.py:81: error: "Callable[[Any], Any]" has no attribute "xin"
scipy/optimize/tests/test_nonlin.py:82: error: "Callable[[Any], Any]" has no attribute "KNOWN_BAD"
scipy/optimize/tests/test_nonlin.py:96: error: "Callable[[Any], Any]" has no attribute "xin"
scipy/optimize/tests/test_nonlin.py:97: error: "Callable[[Any], Any]" has no attribute "KNOWN_BAD"
scipy/integrate/tests/test_bvp.py:4: error: Cannot find implementation or library stub for module named 'StringIO'
scipy/integrate/quadpack.py:7: error: Module 'scipy.integrate' has no attribute '_quadpack'
scipy/integrate/odepack.py:6: error: Module 'scipy.integrate' has no attribute '_odepack'
scipy/integrate/_ode.py:90: error: Module 'scipy.integrate' has no attribute 'vode'; maybe "ode"?
scipy/integrate/_ode.py:91: error: Module 'scipy.integrate' has no attribute '_dop'
scipy/integrate/_ode.py:92: error: Module 'scipy.integrate' has no attribute 'lsoda'
scipy/integrate/_ode.py:784: error: Need type annotation for 'integrator_classes' (hint: "integrator_classes: List[<type>] = ...")
scipy/integrate/_ode.py:851: error: Incompatible types in assignment (expression has type "int", base class "IntegratorBase" defined the type as "None")
scipy/integrate/_ode.py:852: error: Incompatible types in assignment (expression has type "int", base class "IntegratorBase" defined the type as "None")
scipy/integrate/_ode.py:1045: error: Incompatible types in assignment (expression has type "Type[complex]", base class "IntegratorBase" defined the type as "Type[float]")
scipy/signal/ltisys.py:1932: error: All conditional function variants must have identical signatures
scipy/interpolate/tests/test_interpolate.py:20: error: Module 'scipy.interpolate' has no attribute '_ppoly'
scipy/integrate/tests/test_quadpack.py:14: error: Cannot find implementation or library stub for module named 'scipy._lib._ccallback_c'
scipy/integrate/tests/test_quadpack.py:16: error: Cannot find implementation or library stub for module named 'scipy.integrate._test_multivariate'
scipy/integrate/tests/test_odeint_jac.py:5: error: Cannot find implementation or library stub for module named 'scipy.integrate._test_odeint_banded'
scipy/integrate/tests/test_integrate.py:90: error: Incompatible types in assignment (expression has type "Type[ode]", base class "TestODEClass" defined the type as "None")
scipy/integrate/tests/test_integrate.py:194: error: Incompatible types in assignment (expression has type "Type[complex_ode]", base class "TestODEClass" defined the type as "None")
scipy/integrate/tests/test_integrate.py:396: error: Need type annotation for 'z0' (hint: "z0: List[<type>] = ...")
scipy/integrate/tests/test_integrate.py:412: error: Incompatible types in assignment (expression has type "float", base class "ODE" defined the type as "int")
scipy/integrate/tests/test_integrate.py:413: error: Incompatible types in assignment (expression has type "ndarray", base class "ODE" defined the type as "List[Any]")
scipy/integrate/tests/test_integrate.py:432: error: Incompatible types in assignment (expression has type "float", base class "ODE" defined the type as "int")
scipy/integrate/tests/test_integrate.py:468: error: Incompatible types in assignment (expression has type "float", base class "ODE" defined the type as "int")
scipy/integrate/tests/test_integrate.py:470: error: Incompatible types in assignment (expression has type "int", base class "ODE" defined the type as "None")
scipy/integrate/tests/test_integrate.py:471: error: Incompatible types in assignment (expression has type "int", base class "ODE" defined the type as "None")
scipy/stats/_discrete_distns.py:17: error: Cannot find implementation or library stub for module named 'scipy.stats.biasedurn'
scipy/stats/_discrete_distns.py:1608: error: Incompatible types in assignment (expression has type "str", base class "_nchypergeom_gen" defined the type as "None")
scipy/stats/_discrete_distns.py:1691: error: Incompatible types in assignment (expression has type "str", base class "_nchypergeom_gen" defined the type as "None")
scipy/stats/_qmc.py:11: error: Cannot find implementation or library stub for module named 'scipy.stats._sobol'
scipy/stats/stats.py:188: error: Cannot find implementation or library stub for module named 'scipy.stats._stats'
scipy/stats/morestats.py:13: error: Module 'scipy.stats' has no attribute 'statlib'
scipy/stats/kde.py:34: error: Module 'scipy.stats' has no attribute 'mvn'
scipy/stats/kde.py:35: error: Cannot find implementation or library stub for module named 'scipy.stats._stats'
scipy/stats/distributions.py:21: error: Cannot determine type of '_distn_names'
scipy/stats/_multivariate.py:11: error: Module 'scipy.linalg.blas' has no attribute 'drot'
scipy/stats/_multivariate.py:16: error: Module 'scipy.stats' has no attribute 'mvn'
scipy/stats/_continuous_distns.py:2792: error: Unsupported left operand type for + ("None")
scipy/stats/_continuous_distns.py:2792: note: Left operand is of type "Optional[str]"
scipy/stats/mstats_extras.py:25: error: Module 'scipy.stats.distributions' has no attribute 'norm'
scipy/stats/mstats_extras.py:25: error: Module 'scipy.stats.distributions' has no attribute 'beta'
scipy/stats/mstats_extras.py:25: error: Module 'scipy.stats.distributions' has no attribute 't'
scipy/stats/mstats_extras.py:25: error: Module 'scipy.stats.distributions' has no attribute 'binom'
scipy/stats/tests/test_rank.py:196: error: Need type annotation for '_cases'
scipy/stats/tests/test_qmc.py:10: error: Cannot find implementation or library stub for module named 'scipy.stats._sobol'
scipy/stats/tests/test_qmc.py:293: error: NotImplemented? not callable
scipy/stats/tests/test_qmc.py:298: error: NotImplemented? not callable
scipy/stats/tests/test_qmc.py:390: error: Incompatible types in assignment (expression has type "Type[Halton]", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:391: error: Incompatible types in assignment (expression has type "bool", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:393: error: Incompatible types in assignment (expression has type "ndarray", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:398: error: Incompatible types in assignment (expression has type "ndarray", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:409: error: Incompatible types in assignment (expression has type "Type[LatinHypercube]", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:410: error: Incompatible types in assignment (expression has type "bool", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:411: error: Incompatible types in assignment (expression has type "ndarray", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:438: error: Incompatible types in assignment (expression has type "Type[OrthogonalLatinHypercube]", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:439: error: Incompatible types in assignment (expression has type "bool", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:440: error: Incompatible types in assignment (expression has type "ndarray", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:471: error: Incompatible types in assignment (expression has type "Type[Sobol]", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:472: error: Incompatible types in assignment (expression has type "bool", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:474: error: Incompatible types in assignment (expression has type "ndarray", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_qmc.py:484: error: Incompatible types in assignment (expression has type "ndarray", base class "QMCEngineTests" defined the type as "_NotImplementedType")
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'betabinom'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'hypergeom'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'nhypergeom'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'bernoulli'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'boltzmann'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'skellam'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'zipf'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'zipfian'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'nbinom'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'nchypergeom_fisher'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'nchypergeom_wallenius'
scipy/stats/tests/test_discrete_distns.py:1: error: Module 'scipy.stats' has no attribute 'randint'
scipy/signal/signaltools.py:8: error: Module 'scipy.signal' has no attribute 'sigtools'
scipy/signal/signaltools.py:19: error: Cannot find implementation or library stub for module named 'scipy.signal._sosfilt'
scipy/signal/fir_filter_design.py:14: error: Module 'scipy.signal' has no attribute 'sigtools'
scipy/signal/_peak_finding.py:10: error: Cannot find implementation or library stub for module named 'scipy.signal._peak_finding_utils'
scipy/signal/__init__.py:292: error: Module 'scipy.signal' has no attribute 'sigtools'
scipy/signal/__init__.py:299: error: Cannot find implementation or library stub for module named 'scipy.signal.spline'
scipy/linalg/tests/test_lapack.py:32: error: Module 'scipy.linalg' has no attribute '_clapack'
scipy/linalg/tests/test_lapack.py:40: error: Unsupported operand types for + ("List[Type[floating[Any]]]" and "List[Type[complexfloating[Any, Any]]]")
scipy/linalg/tests/test_decomp.py:28: error: Module 'scipy.linalg.lapack' has no attribute 'dgbtrf'
scipy/linalg/tests/test_decomp.py:28: error: Module 'scipy.linalg.lapack' has no attribute 'dgbtrs'
scipy/linalg/tests/test_decomp.py:28: error: Module 'scipy.linalg.lapack' has no attribute 'zgbtrf'
scipy/linalg/tests/test_decomp.py:28: error: Module 'scipy.linalg.lapack' has no attribute 'zgbtrs'
scipy/linalg/tests/test_decomp.py:28: error: Module 'scipy.linalg.lapack' has no attribute 'dsbev'
scipy/linalg/tests/test_decomp.py:28: error: Module 'scipy.linalg.lapack' has no attribute 'dsbevd'
scipy/linalg/tests/test_decomp.py:28: error: Module 'scipy.linalg.lapack' has no attribute 'dsbevx'
scipy/linalg/tests/test_decomp.py:28: error: Module 'scipy.linalg.lapack' has no attribute 'zhbevd'
scipy/linalg/tests/test_decomp.py:28: error: Module 'scipy.linalg.lapack' has no attribute 'zhbevx'
scipy/linalg/tests/test_decomp.py:65: error: Unsupported operand types for + ("List[Type[floating[Any]]]" and "List[Type[complexfloating[Any, Any]]]")
scipy/linalg/tests/test_decomp.py:2529: error: No overload variant of "__call__" of "_SkipMarkDecorator" matches argument types "bool", "str"
scipy/linalg/tests/test_decomp.py:2529: note: Possible overload variants:
scipy/linalg/tests/test_decomp.py:2529: note:     def [_Markable] __call__(self, arg: _Markable) -> _Markable
scipy/linalg/tests/test_decomp.py:2529: note:     def __call__(self, reason: str = ...) -> MarkDecorator
scipy/stats/tests/test_continuous_basic.py:121: error: Module has no attribute "rv_histogram"
scipy/signal/tests/test_windows.py:12: error: Module 'scipy.signal' has no attribute 'hann'
scipy/signal/tests/test_upfirdn.py:44: error: Cannot find implementation or library stub for module named 'scipy.signal._upfirdn_apply'
scipy/signal/tests/test_signaltools.py:1197: error: Argument 1 to "list" has incompatible type "Iterator[Tuple[Any, ...]]"; expected "Iterable[Tuple[str, bool, None]]"
scipy/signal/tests/test_peak_finding.py:23: error: Cannot find implementation or library stub for module named 'scipy.signal._peak_finding_utils'
scipy/stats/tests/test_multivariate.py:23: error: Module 'scipy.stats' has no attribute 'beta'
scipy/stats/tests/test_multivariate.py:23: error: Module 'scipy.stats' has no attribute 'chi2'
scipy/stats/tests/test_multivariate.py:23: error: Module 'scipy.stats' has no attribute 'invgamma'
scipy/stats/tests/test_multivariate.py:23: error: Module 'scipy.stats' has no attribute 'norm'
scipy/stats/tests/test_multivariate.py:23: error: Module 'scipy.stats' has no attribute 'uniform'
scipy/stats/tests/test_multivariate.py:23: error: Module 'scipy.stats' has no attribute 'binom'
scipy/stats/tests/test_multivariate.py:23: error: Module 'scipy.stats' has no attribute 'hypergeom'
scipy/stats/tests/test_multivariate.py:23: error: Module 'scipy.stats' has no attribute 'cauchy'
scipy/stats/tests/test_distributions.py:1087: error: Module has no attribute "gumbel_r"
scipy/stats/tests/test_distributions.py:1087: error: Module has no attribute "gumbel_l"
scipy/stats/tests/test_distributions.py:1099: error: Module has no attribute "gumbel_r"
scipy/stats/tests/test_distributions.py:1100: error: Module has no attribute "gumbel_l"
scipy/stats/tests/test_distributions.py:5431: error: Unsupported operand types for + ("List[List[object]]" and "List[object]")
Found 427 errors in 171 files (checked 671 source files)

So I will revert this. runtests.py --mypy should first pass locally before we can reintroduce this @tirthasheshpatel. And then the way to test the actual CI change is to push it to the master branch on your own fork while removing the line

if: "github.repository == 'scipy/scipy ....

If it passes on your own fork, it should pass here too.

rgommers added a commit to rgommers/scipy that referenced this pull request Feb 27, 2021
rgommers added a commit that referenced this pull request Feb 27, 2021
@tirthasheshpatel
Copy link
Member Author

There are a lot of failures on the next PR that got this new CI

Oh, sorry that that happened.

So I will revert this. runtests.py --mypy should first pass locally before we can reintroduce this @tirthasheshpatel. And then the way to test the actual CI change is to push it to the master branch on your own fork while removing the line

if: "github.repository == 'scipy/scipy ....

If it passes on your own fork, it should pass here too.

Ok, I will try that and let you know if it passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Items related to the CI tools such as CircleCI, GitHub Actions or Azure maintenance Items related to regular maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAINT: mypy: some typing errors while running mypy + adding mypy to ci?
3 participants