No, I don't think so - any type of axis that has the `toggle_axisline` feature will work (though perhaps there are other features to check for?).  I'd rather check for features than restrict to particular parent classes, as I'd hope that some time in the future other mpl axis classes will have these features.  That said, maybe for now it would be better to restrict to classes.