black/tests/data/cases/keep_newline_after_match.py
2024-01-24 17:06:14 -08:00

41 lines
547 B
Python

# flags: --minimum-version=3.10
def http_status(status):
match status:
case 400:
return "Bad request"
case 401:
return "Unauthorized"
case 403:
return "Forbidden"
case 404:
return "Not found"
# output
def http_status(status):
match status:
case 400:
return "Bad request"
case 401:
return "Unauthorized"
case 403:
return "Forbidden"
case 404:
return "Not found"