Version 2.2.2
matplotlib

matplotlib.axis.YTick.have_units

YTick.have_units()

Return True if units are set on the x or y axes