Skip to content

Commit eded78a

Browse files
authored
[pyupgrade] Fix broken doc link and clarify that deprecated aliases were removed in Python 3.12 (UP005) (#13327)
1 parent a7b8cc0 commit eded78a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ruff_linter/src/rules/pyupgrade/rules/deprecated_unittest_alias.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::checkers::ast::Checker;
1313
///
1414
/// ## Why is this bad?
1515
/// The `unittest` module has deprecated aliases for some of its methods.
16-
/// The aliases may be removed in future versions of Python. Instead,
16+
/// The deprecated aliases were removed in Python 3.12. Instead of aliases,
1717
/// use their non-deprecated counterparts.
1818
///
1919
/// ## Example
@@ -37,7 +37,7 @@ use crate::checkers::ast::Checker;
3737
/// ```
3838
///
3939
/// ## References
40-
/// - [Python documentation: Deprecated aliases](https://docs.python.org/3/library/unittest.html#deprecated-aliases)
40+
/// - [Python 3.11 documentation: Deprecated aliases](https://docs.python.org/3.11/library/unittest.html#deprecated-aliases)
4141
#[violation]
4242
pub struct DeprecatedUnittestAlias {
4343
alias: String,

0 commit comments

Comments
 (0)