Unverified Commit df2bc5ef authored by Sai-Suraj-27's avatar Sai-Suraj-27 Committed by GitHub
Browse files

fix: Fixed few `docstrings` according to the Google Style Guide (#7717)

Fixed few docstrings according to the Google Style Guide.
parent a7bf77fc
...@@ -73,7 +73,7 @@ diffusers_module = spec.loader.load_module() ...@@ -73,7 +73,7 @@ diffusers_module = spec.loader.load_module()
# Thanks to https://stackoverflow.com/questions/29916065/how-to-do-camelcase-split-in-python # Thanks to https://stackoverflow.com/questions/29916065/how-to-do-camelcase-split-in-python
def camel_case_split(identifier): def camel_case_split(identifier):
"Split a camelcased `identifier` into words." """Split a camelcased `identifier` into words."""
matches = re.finditer(".+?(?:(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|$)", identifier) matches = re.finditer(".+?(?:(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|$)", identifier)
return [m.group(0) for m in matches] return [m.group(0) for m in matches]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment