ruff/crates/ruff_python_ast
Brent Westbrook 8e11c53310
Add Checker::import_from_typing (#17340)
Summary
--

This PR replaces uses of version-dependent imports from `typing` or
`typing_extensions` with a centralized `Checker::import_from_typing`
method.

The idea here is to make the fix for #9761 (whatever it ends up being)
applicable to all of the rules performing similar checks.

Test Plan
--

Existing tests for the affected rules.
2025-04-11 13:37:55 +00:00
..
src Add Checker::import_from_typing (#17340) 2025-04-11 13:37:55 +00:00
ast.toml [syntax-errors] Duplicate type parameter names (#16858) 2025-03-21 15:06:22 -04:00
Cargo.toml Transition to salsa coarse-grained tracked structs (#15763) 2025-02-11 11:38:50 +01:00
generate.py Add as_group methods to AnyNodeRef (#17048) 2025-03-28 19:42:45 +00:00