Skip to content

Commit da22888

Browse files
committed
chore(style): [0] == -> startswith
1 parent 04c997e commit da22888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_python_client/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PythonIdentifier(str):
1212
def __new__(cls, value: str, prefix: str) -> "PythonIdentifier":
1313
new_value = fix_reserved_words(snake_case(sanitize(value)))
1414

15-
if not new_value.isidentifier() or value[0] == "_":
15+
if not new_value.isidentifier() or value.startswith("_"):
1616
new_value = f"{prefix}{new_value}"
1717
return str.__new__(cls, new_value)
1818

0 commit comments

Comments
 (0)