Skip to content

Example for .is_<substate>() for HSM with nonstandard separator? #500

@alterscape

Description

@alterscape

First of all, thank you for this library.

It isn't clear to me how the auto-generated model.is_<state>() methods for HSM substates are named in the case of non-standard separator characters. I am using a non-standard separator, -, because I'm working in a code base where snake_case is strongly desired for all methods. However, I think this is breaking the generation of is_ methods, because is_superstate_name-substate_name is, of course, not a legal Python identifier.

I could use camel case or some other scheme, but I'd strongly prefer not to...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions