ruff/crates/ruff_python_ast/tests
Dhruv Manilawala 78bbf6d403
New Singleton enum for PatternMatchSingleton node (#8063)
## Summary

This PR adds a new `Singleton` enum for the `PatternMatchSingleton`
node.

Earlier the node was using the `Constant` enum but the value for this
pattern can only be either `None`, `True` or `False`. With the coming PR
to remove the `Constant`, this node required a new type to fill in.

This also has the benefit of narrowing the type down to only the
possible values for the node as evident by the removal of `unreachable`.

## Test Plan

Update the AST snapshots and run `cargo test`.
2023-10-30 05:48:53 +00:00
..
snapshots Rename Arguments to Parameters in the AST (#6253) 2023-08-01 13:53:28 -04:00
identifier.rs Remove Parse trait (#6235) 2023-08-01 18:35:03 +02:00
parenthesize.rs Use CommentRanges in backwards lexing (#7360) 2023-09-16 03:21:45 +00:00
preorder.rs New Singleton enum for PatternMatchSingleton node (#8063) 2023-10-30 05:48:53 +00:00
stmt_if.rs Remove Parse trait (#6235) 2023-08-01 18:35:03 +02:00
visitor.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00