mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 23:54:36 -05: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:
committed by
GitHub
parent
8365d2e0fd
commit
852a8f4a4f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user