refactoring

This commit is contained in:
Matthias Bisping 2022-03-31 16:26:40 +02:00
parent 2517b45d44
commit 4f94cbd68d

View File

@ -10,7 +10,7 @@ class Snake2CamelCaseKeyFormatter(Formatter):
if isinstance(key, str):
head, *tail = key.split("_")
return head + "".join(map(lambda s: s.title(), tail))
return head + "".join(map(str.title, tail))
else:
return key