Debian Codegraph @

tests/data/cases/keep_newline_after_match.py

raw
1 # flags: --minimum-version=3.10
2 def http_status(status):
3
4 match status:
5
6 case 400:
7
8 return "Bad request"
9
10 case 401:
11
12 return "Unauthorized"
13
14 case 403:
15
16 return "Forbidden"
17
18 case 404:
19
20 return "Not found"
21
22 # output
23 def http_status(status):
24
25 match status:
26
27 case 400:
28
29 return "Bad request"
30
31 case 401:
32
33 return "Unauthorized"
34
35 case 403:
36
37 return "Forbidden"
38
39 case 404:
40
41 return "Not found"