Version 2.2.2
matplotlib

matplotlib.axis.Tick.get_tickdir

Tick.get_tickdir()