Update crates/ruff_linter/src/rules/flake8_pyi/rules/generic_not_last_base_class.rs

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Brent Westbrook 2025-06-10 11:46:50 -04:00 committed by GitHub
parent 021f0c01aa
commit db83038c04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -14,10 +14,11 @@ use crate::{Fix, FixAvailability, Violation};
/// ///
/// If `Generic[]` is not the final class in the bases tuple, unexpected /// If `Generic[]` is not the final class in the bases tuple, unexpected
/// behaviour can occur at runtime (See [this CPython issue][1] for an example). /// behaviour can occur at runtime (See [this CPython issue][1] for an example).
///
/// The rule is also applied to stub files, where it won't cause issues at /// The rule is also applied to stub files, where it won't cause issues at
/// runtime, because type checkers may not be able to infer an accurate [MRO] /// runtime. This is because type checkers may not be able to infer an
/// for the class, which could lead to unexpected or inaccurate results when /// accurate [MRO] for the class, which could lead to unexpected or
/// they analyze your code. /// inaccurate results when they analyze your code.
/// ///
/// For example: /// For example:
/// ```python /// ```python