We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f22b04e commit 6dabf9aCopy full SHA for 6dabf9a
2 files changed
src/unparser.rs
@@ -1327,7 +1327,7 @@ impl Unparser {
1327
}
1328
1329
fn unparse_pattern_match_singleton(&mut self, node: &PatternMatchSingleton<TextRange>) {
1330
- self.write_str(node.value.as_str().unwrap())
+ self._unparse_constant(&node.value);
1331
1332
1333
fn unparse_pattern_match_sequence(&mut self, node: &PatternMatchSequence<TextRange>) {
test_files/match.py
@@ -8,6 +8,8 @@ class MatchThis:
8
9
10
match {name_5: name_2}:
11
+ case None:
12
+ pass
13
case [value_1, *rest] if []:
14
print(value_1, *rest)
15
case (value_1, *rest) if []:
0 commit comments