Skip to content

Commit

Permalink
Implement TokenKind for type aliases (astral-sh#5870)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb authored and evanrittenhouse committed Jul 19, 2023
1 parent 1b153ba commit 194aeae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/ruff_python_ast/src/token_kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ pub enum TokenKind {
Try,
While,
Match,
Type,
Case,
With,
Yield,
Expand Down Expand Up @@ -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!(),
}
}
}
Expand Down

0 comments on commit 194aeae

Please sign in to comment.