def _is_type_compatible(a, b):
is_ts_compat = lambda x: isinstance(x, (Timestamp, DateOffset))<EOL>is_td_compat = lambda x: isinstance(x, (Timedelta, DateOffset))<EOL>return ((is_number(a) and is_number(b)) or<EOL>(is_ts_compat(a) and is_ts_compat(b)) or<EOL>(is_td_compat(a) and is_td_compat(b)) or<EOL>com._any_none(a, b))<EOL>
helper for interval_range to check type compat of start/end/freq