Skip to content

Mypy 1.0.0 crashes with asyncssh #14699

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

Closed
julian-r opened this issue Feb 14, 2023 · 3 comments
Closed

Mypy 1.0.0 crashes with asyncssh #14699

julian-r opened this issue Feb 14, 2023 · 3 comments
Labels

Comments

@julian-r
Copy link

Crash Report

Updated my project from mypy 0.991 to 1.0.0

Traceback

On the top you see the log because my execution with --verbose

LOG:  Writing asyncssh.connection /Users/julian/Library/Caches/pypoetry/virtualenvs/mypy-asyncssh-issue-ZzvwNVve-py3.11/lib/python3.11/site-packages/asyncssh/connection.py asyncssh/connection.meta.json asyncssh/connection.data.json
LOG:  Build finished in 1.795 seconds with 270 modules, and 0 errors
Traceback (most recent call last):
  File "/Users/julian/Library/Caches/pypoetry/virtualenvs/mypy-asyncssh-issue-ZzvwNVve-py3.11/bin/mypy", line 8, in <module>
    sys.exit(console_entry())
             ^^^^^^^^^^^^^^^
  File "/Users/julian/Library/Caches/pypoetry/virtualenvs/mypy-asyncssh-issue-ZzvwNVve-py3.11/lib/python3.11/site-packages/mypy/__main__.py", line 15, in console_entry
    main()
  File "mypy/main.py", line 95, in main
  File "mypy/main.py", line 174, in run_build
  File "mypy/build.py", line 194, in build
  File "mypy/build.py", line 277, in _build
  File "mypy/build.py", line 2923, in dispatch
  File "mypy/build.py", line 3320, in process_graph
  File "mypy/build.py", line 3443, in process_stale_scc
  File "mypy/build.py", line 2504, in write_cache
  File "mypy/build.py", line 1574, in write_cache
  File "mypy/nodes.py", line 377, in serialize
  File "mypy/nodes.py", line 3841, in serialize
  File "mypy/nodes.py", line 3778, in serialize
  File "mypy/nodes.py", line 3514, in serialize
  File "mypy/types.py", line 2072, in serialize
  File "mypy/types.py", line 605, in serialize
  File "mypy/types.py", line 2876, in serialize
AssertionError: Internal error: unresolved placeholder type None

To Reproduce

I've provided a poetry-based project which will cause the error when

poetry run mypy --verbose --show-traceback .

Your Environment

Project to reproduce:
https://github.com/julian-r/mypy-asyncssh-issue

  • Mypy version used: 1.0.0
  • Mypy command-line flags: --verbose --show-traceback
  • Mypy configuration options from mypy.ini (and other config files): none
  • Python version used: 3.11.2
  • Operating system and version: macOS 13.1 (22C65) M1
@julian-r julian-r added the crash label Feb 14, 2023
@AlexWaygood
Copy link
Member

Duplicate of #14631

@AlexWaygood AlexWaygood marked this as a duplicate of #14631 Feb 14, 2023
@AlexWaygood AlexWaygood closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2023
@AlexWaygood
Copy link
Member

A patch release with the fix should be coming soon!

@julian-r
Copy link
Author

Thank you! You are doing awesome work! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants