(self, event_data)
return res == self.target
Check whether the condition passes.
        Args:
            event_data (EventData): An EventData instance to pass to the
                condition (if event sending is enabled) or to extract arguments
                from (if event sending is disabled). Also contains the data
                model attached to the current machine which is used to invoke
                the condition.
Check whether the condition passes.
        Args:
            event_data (EventData): An EventData instance to pass to the
                condition (if event sending is enabled) or to extract arguments
                from (if event sending is disabled). Also contains the data
                model attached to the current machine which is used to invoke
                the condition.
Check whether the condition passes . Args : event_data ( EventData ) : An EventData instance to pass to the condition ( if event sending is enabled ) or to extract arguments from ( if event sending is disabled ) . Also contains the data model attached to the current machine which is used to invoke the condition .
async def check(self, event_data):
        """ Check whether the condition passes.
        Args:
            event_data (EventData): An EventData instance to pass to the
                condition (if event sending is enabled) or to extract arguments
                from (if event sending is disabled). Also contains the data
                model attached to the current machine which is used to invoke
                the condition.
        """
        func = event_data.machine.resolve_callable(self.func, event_data)
        res = func(event_data) if event_data.machine.send_event else func(*event_data.args, **event_data.kwargs)
        if inspect.isawaitable(res):
            return await res == self.target
        return res == self.target
async def check ( self , event_data ) : func = event_data . machine . resolve_callable ( self . func , event_data ) res = func ( event_data ) if event_data . machine . send_event else func ( * event_data . args , * * event_data . kwargs ) if inspect . isawaitable ( res ) : return await res == self . target return res == self . target