Skip to content

Commit

Permalink
Implement TokenKind for type aliases (#5870)
Browse files Browse the repository at this point in the history
Part of #5062
  • Loading branch information
zanieb authored and konstin committed Jul 19, 2023
1 parent 4eed8c9 commit 9ff5c89
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 9ff5c89

Please sign in to comment.