black/tests/data/cases/keep_newline_after_match.py
2023-11-20 22:26:08 -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"