diff --git a/crates/ruff_python_ast/src/token_kind.rs b/crates/ruff_python_ast/src/token_kind.rs index 89b88c7fccc9d6..4c90f3c30fb0fc 100644 --- a/crates/ruff_python_ast/src/token_kind.rs +++ b/crates/ruff_python_ast/src/token_kind.rs @@ -156,6 +156,7 @@ pub enum TokenKind { Try, While, Match, + Type, Case, With, Yield, @@ -426,13 +427,13 @@ impl TokenKind { Tok::While => TokenKind::While, Tok::Match => TokenKind::Match, Tok::Case => TokenKind::Case, + Tok::Type => TokenKind::Type, Tok::With => TokenKind::With, Tok::Yield => TokenKind::Yield, Tok::StartModule => TokenKind::StartModule, Tok::StartInteractive => TokenKind::StartInteractive, Tok::StartExpression => TokenKind::StartExpression, Tok::MagicCommand { .. } => todo!(), - Tok::Type => todo!(), } } }