Skip to content

Commit

Permalink
[pyupgrade] Fix broken doc link and clarify that deprecated aliases…
Browse files Browse the repository at this point in the history
… were removed in Python 3.12 (`UP005`) (#13327)
  • Loading branch information
dizzy57 authored Sep 11, 2024
1 parent a7b8cc0 commit eded78a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::checkers::ast::Checker;
///
/// ## Why is this bad?
/// The `unittest` module has deprecated aliases for some of its methods.
/// The aliases may be removed in future versions of Python. Instead,
/// The deprecated aliases were removed in Python 3.12. Instead of aliases,
/// use their non-deprecated counterparts.
///
/// ## Example
Expand All @@ -37,7 +37,7 @@ use crate::checkers::ast::Checker;
/// ```
///
/// ## References
/// - [Python documentation: Deprecated aliases](https://docs.python.org/3/library/unittest.html#deprecated-aliases)
/// - [Python 3.11 documentation: Deprecated aliases](https://docs.python.org/3.11/library/unittest.html#deprecated-aliases)
#[violation]
pub struct DeprecatedUnittestAlias {
alias: String,
Expand Down

0 comments on commit eded78a

Please sign in to comment.