mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Avoid flagging missing whitespace for decorators (#4454)
This commit is contained in:
parent
7e0d018b35
commit
d9c3f8e249
3 changed files with 9 additions and 2 deletions
|
@ -174,7 +174,7 @@ impl TokenKind {
|
|||
|
||||
#[inline]
|
||||
pub const fn is_unary(&self) -> bool {
|
||||
matches!(self, TokenKind::Plus | TokenKind::Minus | TokenKind::Star)
|
||||
matches!(self, TokenKind::Plus | TokenKind::Minus)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue