From ad2650969fcf28428076eb76622d71f915040c8b Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 9 Jan 2024 00:47:40 -0500 Subject: [PATCH] Add some additional Python 3.12 typing members to deprecated-import --- .../ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs b/crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs index 01e7e35f6775ae..6efbc038d89426 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs +++ b/crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_import.rs @@ -342,11 +342,13 @@ const TYPING_EXTENSIONS_TO_TYPING_312: &[&str] = &[ "SupportsFloat", "SupportsInt", "SupportsRound", + "TypeAliasType", "TypedDict", "Unpack", // Introduced in Python 3.11, but `typing_extensions` backports the `frozen_default` argument, // which was introduced in Python 3.12. "dataclass_transform", + "override", ]; struct ImportReplacer<'a> {