Skip to content

Commit 2f0ab7b

Browse files
committed
Move an import to the top of the file
1 parent 9363e7e commit 2f0ab7b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎astropy/table/table.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from numpy import ma
1515

1616
from astropy import log
17-
from astropy.units import Quantity, QuantityInfo
17+
from astropy.units import Quantity, QuantityInfo, Unit
1818
from astropy.utils import isiterable, ShapedLikeNDArray
1919
from astropy.utils.console import color_print
2020
from astropy.utils.metadata import MetaData, MetaAttribute
@@ -3631,7 +3631,6 @@ def _is_mixin_for_table(self, col):
36313631
return has_info_class(col, MixinInfo)
36323632

36333633
def _convert_col_for_table(self, col):
3634-
from astropy.units import Unit
36353634
if isinstance(col, Column) and getattr(col, 'unit', None) is not None:
36363635
# What to do with MaskedColumn with units: leave as MaskedColumn or
36373636
# turn into Quantity and drop mask? Assuming we have masking support

0 commit comments

Comments
 (0)