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

CI for Python 3.10 failing with mypy #14668

Closed
rgommers opened this issue Aug 30, 2021 · 2 comments
Closed

CI for Python 3.10 failing with mypy #14668

rgommers opened this issue Aug 30, 2021 · 2 comments
Labels
CI Items related to the CI tools such as CircleCI, GitHub Actions or Azure defect A clear bug or issue that prevents SciPy from being installed or used as expected

Comments

@rgommers
Copy link
Member

rgommers commented Aug 30, 2021

This just started, recent log in https://github.com/scipy/scipy/pull/14666/checks?check_run_id=3464627479

Traceback (most recent call last):
  File "/home/runner/work/scipy/scipy/runtests.py", line 565, in <module>
    main(argv=sys.argv[1:])
  File "/home/runner/work/scipy/scipy/runtests.py", line 150, in main
    sys.exit(run_mypy(args))
  File "/home/runner/work/scipy/scipy/runtests.py", line 523, in run_mypy
    report, errors, status = mypy.api.run([
  File "/home/runner/.local/lib/python3.10/site-packages/mypy/api.py", line 68, in run
    from mypy.main import main
  File "/home/runner/.local/lib/python3.10/site-packages/mypy/main.py", line 11, in <module>
    from typing_extensions import Final, NoReturn
  File "/home/runner/.local/lib/python3.10/site-packages/typing_extensions.py", line 2390, in <module>
    class _ConcatenateGenericAlias(list):
  File "/home/runner/.local/lib/python3.10/site-packages/typing_extensions.py", line 2394, in _ConcatenateGenericAlias
    __class__ = _GenericAlias
NameError: name '_GenericAlias' is not defined
Error: Process completed with exit code 1.

Giving the timing of the failures starting, it could be related to gh-14655 - or it could be something that changed in typing_extensions or in Python 3.10

@rgommers rgommers added CI Items related to the CI tools such as CircleCI, GitHub Actions or Azure defect A clear bug or issue that prevents SciPy from being installed or used as expected labels Aug 30, 2021
@rgommers
Copy link
Member Author

Oh looks like it's already being fixed by a new typing_extensions release that just landed on PyPI. xref python/typing#871

@rgommers
Copy link
Member Author

Indeed fixed again, closing.

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 defect A clear bug or issue that prevents SciPy from being installed or used as expected
Projects
None yet
Development

No branches or pull requests

1 participant