From d21cd6e391f38a365181d958f9aa74d3ae422e3b Mon Sep 17 00:00:00 2001 From: boukeversteegh Date: Wed, 1 Jul 2020 13:15:03 +0200 Subject: [PATCH] black --- betterproto/casing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/betterproto/casing.py b/betterproto/casing.py index 60ece6a..543df68 100644 --- a/betterproto/casing.py +++ b/betterproto/casing.py @@ -68,7 +68,9 @@ def snake_case(value: str, strict: bool = True): elif is_start: delimiter_count = len(symbols) elif word.isupper() or word.islower(): - delimiter_count = max(1, len(symbols)) # Preserve all delimiters if not strict. + delimiter_count = max( + 1, len(symbols) + ) # Preserve all delimiters if not strict. else: delimiter_count = len(symbols) + 1 # Extra underscore for leading capital.