Fernando Macedo

Results 75 comments of Fernando Macedo

You can use explicit `Event` declaration, it wraps the transition list and makes the linter happy :) ``` from statemachine import Event ... start = Event(idle.to(counting)) ```

Hi @AlexMKX , how are you? Thanks for your suggestion. I think that in the end this relates to https://github.com/fgmacedo/python-statemachine/issues/386, as an alternative implementation solving the same issue. Do you...

Hi @robinharms , how are you? Thanks for your suggestion. I like the idea, sounds great! We need to mature the "how" and the external API... I think that the...

I agree with using name as metadata instead of the event identification. I only didn't get how the name on transition will be used. As you demonstrated, we could possibly...

> red = State(name=_("Red")) > > > # option 1 > cycle = ( > | yellow.to(red, name=_("Cycle")) > | red.to(green, name=_("Let's go!")) > ) > > # option 2...

I liked the idea of having an explicit `Event` instance when customizing the name. Options 2 & 3 seem the best. The operators option looks like syntactic sugar on top...

Hi @robinharms , can you please review the work at https://github.com/fgmacedo/python-statemachine/pull/488? Specially if the docs are ok? https://python-statemachine--488.org.readthedocs.build/en/488/transitions.html#event

Nice! Glad to know it worked! Can you elaborate more about the API changes you think may break? I just want to be sure I'm on the same page. I'm...

Ah, got it. Yes... I've preserved the same behavior as before If you don't change to explicit create an `Event` by yourself... so for every previous use case, the `event...