Fix snap damage "self" conflicting w python keyword

This commit is contained in:
ChillerDragon 2023-05-15 10:13:39 +02:00
parent 7684002a64
commit fb12b0a498

View file

@ -209,8 +209,8 @@ f"""
def fix_name_conflict(name: str) -> str:
# https://peps.python.org/pep-0008/#descriptive-naming-styles
if name == 'pass':
return 'pass_'
if name in ('pass', 'self'):
return f'{name}_'
return name
def name_to_camel(name_list: list[str]) -> str: