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

[Panic] entered unreachable code: Expected ImportNames::Aliases' #3544

Closed
qarmin opened this issue Mar 15, 2023 · 1 comment · Fixed by #3566
Closed

[Panic] entered unreachable code: Expected ImportNames::Aliases' #3544

qarmin opened this issue Mar 15, 2023 · 1 comment · Fixed by #3566
Assignees
Labels
bug Something isn't working

Comments

@qarmin
Copy link

qarmin commented Mar 15, 2023

Ruff 0.0.255

command

ruff . --fix

crash

thread 'main' panicked at 'internal error: entered unreachable code: Expected ImportNames::Aliases', crates/ruff/src/rules/pyupgrade/rules/rewrite_mock_import.rs:187:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

12364mock (15th copy)0.py.zip

@charliermarsh
Copy link
Member

Thank you, I appreciate these a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants