Fernando Macedo
Fernando Macedo
> Is it ok to place state transitions inside of state events (e.g. the `self.do_data_bad()` call inside of `while_checking`)? Yes, it's ok. Just be aware of the ["RTC" model](https://python-statemachine.readthedocs.io/en/latest/processing_model.html#rtc-model): >...
### Example using chained transitions with conditionals  Another way to model your state machine is to fully embrace the conditionals. IMO this is the best approach. ```py >>> from...
Hi @NSchrading , since this has been idle for a few weeks and we already have examples, I think it's safe to close the issue. Feel free to reopen or...
Hi @kler, thanks for taking the time to report this. I was able to reproduce the issue by just adding `[tool.pyright]` to the project's `pyproject.toml`. #### Context of the problem...
Nice! Another and maybe better approach could be to use the explicit [`Event`](https://python-statemachine.readthedocs.io/en/latest/transitions.html#declaring-events) creation, so the linter will be happy: ```py from statemachine import State, StateMachine, Event class PylanceWarningStateMachine(StateMachine): init...
Hi @OliverDavey, how are you? Unfortunately, the issue is a bit trickier. I reuse the README.md file in the build docs as the main page by [including it via a...
Thanks @OliverDavey !
+1 I use doctests for all the examples in the documentation for [python-statemachine](https://github.com/fgmacedo/python-statemachine). Some examples generate diagrams on disk. I want to skip those doctests and run them only before...
Hi @comalice , thanks for reporting this! I think that this is the source of this issue: https://github.com/fgmacedo/python-statemachine/blob/995489040adcf1657d953eedefdd06c0a8552600/statemachine/statemachine.py#L118-L121 It was added to make mypy stop complaining about dynamic-created state machine...
> Also there is a linting error about the name attribute of an event:  Hi @mgineer85, For this last case, you can make the linter happy by using explicit...