ruff/crates
Brent Westbrook fe516e24f5
[pyflakes] Visit forward annotations in TypeAliasType as types (F401) (#15829)
## Summary

Fixes https://github.com/astral-sh/ruff/issues/15812 by visiting the
second argument as a type definition.

## Test Plan

New F401 tests based on the report.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-01-30 18:06:38 -05:00
..
red_knot Improve the file watching failure error message (#15728) 2025-01-24 15:28:30 -06:00
red_knot_project [red-knot] Add --ignore, --warn, and --error CLI arguments (#15689) 2025-01-24 16:20:15 +01:00
red_knot_python_semantic [red-knot] Clarify behavior when redeclaring base class attributes (#15826) 2025-01-30 14:49:23 +01:00
red_knot_server [red-knot] Make Diagnostic::file optional (#15640) 2025-01-23 10:43:14 +01:00
red_knot_test [red-knot] Do not use explicit knot_extensions.Unknown declaration (#15787) 2025-01-28 17:18:22 +01:00
red_knot_vendored [red-knot] Migrate is_gradual_equivalent_to unit tests to Markdown tests (#15563) 2025-01-17 16:48:01 -08:00
red_knot_wasm Create Unknown rule diagnostics with a source range (#15648) 2025-01-23 12:50:43 +01:00
ruff Bump version to 0.9.4 (#15831) 2025-01-30 11:29:22 -06:00
ruff_annotate_snippets Fix docstring in ruff_annotate_snippets (#15748) 2025-01-26 22:25:29 -05:00
ruff_benchmark [red-knot] Consider all definitions after terminal statements unreachable (#15676) 2025-01-29 14:06:57 -05:00
ruff_cache
ruff_db [red-knot] Add --ignore, --warn, and --error CLI arguments (#15689) 2025-01-24 16:20:15 +01:00
ruff_dev
ruff_diagnostics Show errors for attempted fixes only when passed --verbose (#15237) 2025-01-03 08:50:13 -06:00
ruff_formatter Upgrade Rust toolchain to 1.84.0 (#15408) 2025-01-11 09:51:58 +01:00
ruff_graph Add support for configuring knot in pyproject.toml files (#15493) 2025-01-17 09:41:06 +01:00
ruff_index
ruff_linter [pyflakes] Visit forward annotations in TypeAliasType as types (F401) (#15829) 2025-01-30 18:06:38 -05:00
ruff_macros Flatten red_knot_project import paths (#15616) 2025-01-20 14:57:57 +01:00
ruff_notebook
ruff_python_ast Preserve quotes in generated f-strings (#15794) 2025-01-29 13:28:22 -05:00
ruff_python_ast_integration_tests
ruff_python_codegen Preserve quotes in generated f-strings (#15794) 2025-01-29 13:28:22 -05:00
ruff_python_formatter Preserve quotes in generated f-strings (#15794) 2025-01-29 13:28:22 -05:00
ruff_python_index
ruff_python_literal
ruff_python_parser Preserve quote style in generated code (#15726) 2025-01-27 13:41:03 -05:00
ruff_python_resolver
ruff_python_semantic [pyflakes] Visit forward annotations in TypeAliasType as types (F401) (#15829) 2025-01-30 18:06:38 -05:00
ruff_python_stdlib Revert "Add all PEP-585 names to UP006 rule" (#15250) 2025-01-04 12:23:53 +01:00
ruff_python_trivia type: ignore[codes] and knot: ignore (#15078) 2024-12-23 10:52:43 +01:00
ruff_python_trivia_integration_tests
ruff_server Consider unsafe-fixes settings for code actions (#15666) 2025-01-22 13:44:13 +05:30
ruff_source_file
ruff_text_size [ruff] itertools.starmap(..., zip(...)) (RUF058) (#15483) 2025-01-16 15:18:12 +01:00
ruff_wasm Bump version to 0.9.4 (#15831) 2025-01-30 11:29:22 -06:00
ruff_workspace Add missing config docstrings (#15803) 2025-01-29 09:02:05 +05:30