transitions icon indicating copy to clipboard operation
transitions copied to clipboard

may_<trigger_name>

Open nm-libang opened this issue 2 years ago • 2 comments

Thank you for taking the time to report a bug! Your support is essential for the maintenance of this project. Please fill out the following fields to ease bug hunting and resolving this issue as soon as possible:

Describe the bug may_<trigger_name> callbacks are not added automatically

Minimal working example

# your minimal working example

Expected behavior As described in the documentation If you want to check whether a transition is possible before you execute it ('look before you leap'), you can use may_<trigger_name> convenience functions that have been attached to your model:

check if the current temperature is hot enough to trigger a transition

if lump.may_heat(): lump.heat()

Additional context Add any other context about the problem here.

nm-libang avatar May 04 '22 09:05 nm-libang

Hello @nm-libang,

which version of transitions do you use? This feature has been added in transitions 0.9.0 which has not been published to PyPI yet.

aleneum avatar May 04 '22 10:05 aleneum

version = '0.8.10'

When do you plan to publish 0.9.0 ??

nm-libang avatar May 04 '22 10:05 nm-libang

Hi. When will 0.9.0 be publish?

serranomorante avatar Sep 02 '22 05:09 serranomorante

I'd like to replace the current coveralls setup since it always returns error with parallel builds even when coverage slightly increased. I hope this wont take too much time. I plan to release today or in the next few days.

aleneum avatar Sep 02 '22 07:09 aleneum

Version 0.9.0 has been published to PyPI

aleneum avatar Sep 02 '22 09:09 aleneum