We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b764af6 commit 79c3c6aCopy full SHA for 79c3c6a
openapi_python_client/utils.py
@@ -67,7 +67,7 @@ def to_valid_python_identifier(value: str) -> str:
67
See:
68
https://docs.python.org/3/reference/lexical_analysis.html#identifiers
69
"""
70
- new_value = fix_reserved_words(fix_keywords(sanitize(value)))
+ new_value = fix_reserved_words(fix_keywords(sanitize(value))).lstrip('_')
71
72
if new_value.isidentifier():
73
return new_value
0 commit comments