Fix a typo in `non_pep695_generic_class.rs` (#15946)

(Accidentally introduced in #15904.)
This commit is contained in:
InSync 2025-02-05 05:16:18 +07:00 committed by GitHub
parent e15419396c
commit 4c15d7a559
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -71,13 +71,13 @@ use super::{check_type_vars, in_nested_context, DisplayTypeVars, TypeVarReferenc
/// found outside of the last position, a diagnostic is emitted without a suggested fix. /// found outside of the last position, a diagnostic is emitted without a suggested fix.
/// ///
/// This rule only applies to generic classes and does not include generic functions. See /// This rule only applies to generic classes and does not include generic functions. See
/// [`non-pep695-generic-function`][PYI059] for the function version. /// [`non-pep695-generic-function`][UP047] for the function version.
/// ///
/// [PEP 695]: https://peps.python.org/pep-0695/ /// [PEP 695]: https://peps.python.org/pep-0695/
/// [PEP 696]: https://peps.python.org/pep-0696/ /// [PEP 696]: https://peps.python.org/pep-0696/
/// [PYI018]: https://docs.astral.sh/ruff/rules/unused-private-type-var/ /// [PYI018]: https://docs.astral.sh/ruff/rules/unused-private-type-var/
/// [PYI059]: https://docs.astral.sh/ruff/rules/generic-not-last-base-class/ /// [PYI059]: https://docs.astral.sh/ruff/rules/generic-not-last-base-class/
/// [PYI059]: https://docs.astral.sh/ruff/rules/non-pep695-generic-function/ /// [UP047]: https://docs.astral.sh/ruff/rules/non-pep695-generic-function/
#[derive(ViolationMetadata)] #[derive(ViolationMetadata)]
pub(crate) struct NonPEP695GenericClass { pub(crate) struct NonPEP695GenericClass {
name: String, name: String,