def __call__()

in py_look_for_timeouts/main.py [0:0]


    def __call__(self, timeout_node, desc, node, filename, is_kwarg):
        """Return a list of IllegalLine on misconfigured timeout.

        :param timeout_node:
        :param desc:
        :param node:
        :param str filename:
        """
        msg = None
        if not timeout_node:
            msg = '%s without a timeout arg or kwarg' % desc
            return [IllegalLine(msg, node, filename)]

        value = _intify(timeout_node)
        if value == 0:
            msg = '%s with a timeout %sarg of 0' % (
                desc, 'kw' if is_kwarg else '')
        elif isinstance(value, int) and not self.allow_hardcoded:
            msg = '%s with an hardcoded timeout arg of %d' % (desc, value)

        if msg:
            return [IllegalLine(msg, node, filename)]