Skip to content

Commit 9ba0c3e

Browse files
committed
Fix black
1 parent 83b26d4 commit 9ba0c3e

File tree

1 file changed

+3
-2
lines changed
  • src/asyncapi_python/contrib/codec

1 file changed

+3
-2
lines changed

src/asyncapi_python/contrib/codec/json.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ def _to_class_name(self, message_name: str) -> str:
112112
if not any(c in message_name for c in "._-"):
113113
# Split camelCase on uppercase letters
114114
import re
115-
parts = re.findall(r'[A-Z][a-z]*|[a-z]+', message_name)
115+
116+
parts = re.findall(r"[A-Z][a-z]*|[a-z]+", message_name)
116117
else:
117118
# Split on separators for snake_case, kebab-case, dot.case
118119
parts = message_name.replace("-", "_").replace(".", "_").split("_")
119-
120+
120121
return "".join(part.capitalize() for part in parts if part)

0 commit comments

Comments
 (0)