@property
    def is_datetime(self):
        try:
            t = self.return_type.type
        except __HOLE__:
            t = self.return_type

        return issubclass(t, (datetime, np.datetime64))
dataset/ETHPy150Open pydata/pandas/pandas/computation/ops.py/Op.is_datetime