diff --git a/crates/ruff_linter/src/rules/pyupgrade/rules/pep695/non_pep695_type_alias.rs b/crates/ruff_linter/src/rules/pyupgrade/rules/pep695/non_pep695_type_alias.rs index 5fb8937abf..e14c5c8632 100644 --- a/crates/ruff_linter/src/rules/pyupgrade/rules/pep695/non_pep695_type_alias.rs +++ b/crates/ruff_linter/src/rules/pyupgrade/rules/pep695/non_pep695_type_alias.rs @@ -40,12 +40,18 @@ use super::{ /// /// ## Example /// ```python +/// from typing import Annotated, TypeAlias, TypeAliasType +/// from annotated_types import Gt +/// /// ListOfInt: TypeAlias = list[int] /// PositiveInt = TypeAliasType("PositiveInt", Annotated[int, Gt(0)]) /// ``` /// /// Use instead: /// ```python +/// from typing import Annotated +/// from annotated_types import Gt +/// /// type ListOfInt = list[int] /// type PositiveInt = Annotated[int, Gt(0)] /// ```