Attributes with blankspaces lead to syntax error or unexpected generated code #213
Labels
bug
Something isn't working
good first issue
Good for newcomers
web modeling editor
Linked to the Web Modeling Editor
Describe the bug
We are "allowed" to use blankspaces in attribute names, but when generating python classes, it only keeps the first word. For instance, an attribute called "task name: str" would generate an attribute:
self.task = task
Expected behaviour: create an attr called:
task_name: str
To fix it: replace blankspaces by underscores?
With Enum classes, the behaviour is different: it keeps all the words but syntax is still incorrect (spaces should be replaced by underscores):
If blankspaces are not allowed, there should be some compilation error, or at least some warning.
The text was updated successfully, but these errors were encountered: