mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
![]() This causes the diagnostic to highlight the actual unresovable import instead of the entire `from ... import ...` statement. While we're here, we expand the test coverage to cover all of the possible ways that an `import` or a `from ... import` can fail. Some considerations: * The first commit in this PR adds a regression test for the current behavior. * This creates a new `mdtest/diagnostics` directory. Are folks cool with this? I guess the idea is to put tests more devoted to diagnostics than semantics in this directory. (Although I'm guessing there will be some overlap.) Fixes #15866 |
||
---|---|---|
.. | ||
unresolved_import.md |