mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
[PIE796] don't report when using ellipses for enum values in stub files (#8825)
## Summary Just ignores ellipses as enum values inside stub files. Fixes #8818.
This commit is contained in:
parent
8365d2e0fd
commit
852a8f4a4f
7 changed files with 47 additions and 4 deletions
|
@ -766,7 +766,7 @@ pub enum ComparableExpr<'a> {
|
|||
NumberLiteral(ExprNumberLiteral<'a>),
|
||||
BoolLiteral(ExprBoolLiteral<'a>),
|
||||
NoneLiteral,
|
||||
EllispsisLiteral,
|
||||
EllipsisLiteral,
|
||||
Attribute(ExprAttribute<'a>),
|
||||
Subscript(ExprSubscript<'a>),
|
||||
Starred(ExprStarred<'a>),
|
||||
|
@ -964,7 +964,7 @@ impl<'a> From<&'a ast::Expr> for ComparableExpr<'a> {
|
|||
Self::BoolLiteral(ExprBoolLiteral { value })
|
||||
}
|
||||
ast::Expr::NoneLiteral(_) => Self::NoneLiteral,
|
||||
ast::Expr::EllipsisLiteral(_) => Self::EllispsisLiteral,
|
||||
ast::Expr::EllipsisLiteral(_) => Self::EllipsisLiteral,
|
||||
ast::Expr::Attribute(ast::ExprAttribute {
|
||||
value,
|
||||
attr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue