[flake8-pyi] Implement PYI059 (generic-not-last-base-class) (#11233)

This commit is contained in:
Tushar Sadhwani 2024-05-07 15:37:56 +05:30 committed by GitHub
parent 28cc71fb6b
commit bc3f4fa3bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 458 additions and 0 deletions

View file

@ -808,6 +808,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
(Flake8Pyi, "055") => (RuleGroup::Stable, rules::flake8_pyi::rules::UnnecessaryTypeUnion),
(Flake8Pyi, "056") => (RuleGroup::Stable, rules::flake8_pyi::rules::UnsupportedMethodCallOnAll),
(Flake8Pyi, "058") => (RuleGroup::Stable, rules::flake8_pyi::rules::GeneratorReturnFromIterMethod),
(Flake8Pyi, "059") => (RuleGroup::Preview, rules::flake8_pyi::rules::GenericNotLastBaseClass),
// flake8-pytest-style
(Flake8PytestStyle, "001") => (RuleGroup::Stable, rules::flake8_pytest_style::rules::PytestFixtureIncorrectParenthesesStyle),