pylint/checkers/stdlib.py
def _check_datetime(self, node):
        """ Check that a datetime was infered.
        If so, emit boolean-datetime warning.
        """
        try:
            infered = next(node.infer())
        except astroid.InferenceError:
            return
        if isinstance(infered, Instance) and infered.qname() == "datetime.time":
            self.add_message("boolean-datetime", node=node)
def _check_datetime(self, node):
        """ Check that a datetime was infered.
        If so, emit boolean-datetime warning.
        """
        try:
            infered = next(node.infer())
        except astroid.InferenceError:
            return
        if isinstance(infered, Instance) and infered.qname() == "datetime.time":
            self.add_message("boolean-datetime", node=node)
Check that a datetime was infered.
        If so, emit boolean-datetime warning.