Takes a dict with keys of type str and returns a new dict with all keys titlecased.
(d: Dict[str, Any])
| 865 | |
| 866 | # https://github.com/Miserlou/Zappa/issues/1188 |
| 867 | def titlecase_keys(d: Dict[str, Any]) -> Dict[str, Any]: |
| 868 | """ |
| 869 | Takes a dict with keys of type str and returns a new dict with all keys titlecased. |
| 870 | """ |
| 871 | return {k.title(): v for k, v in d.items()} |
| 872 | |
| 873 | |
| 874 | # https://github.com/Miserlou/Zappa/issues/1688 |
no outgoing calls