pint.utils.has_astropy_unit

pint.utils.has_astropy_unit(x)[source]

Test whether x has a unit attribute containing an astropy unit.

This is useful, because different data types can still have units associated with them.