You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…types.
The current code does not right-align numeric types when converting to text.
numeric_types is defined in petl.compat.
The following customization (via monkey-patching, yes, I know) does not work, however:
import petl.compat
petl.compat.numeric_types = petl.compat.numeric_types + (Decimal,)
because in petl/util/vis.py it is accessed like this:
from petl.compat import numeric_types, text_type
and this module gets loaded as a side-effect of importing petl.
Changing it to this - everywhere it is used - would fix the issue:
from petl import compat
...
isinstance(..., compat.numeric_types)
...
The current code does not right-align numeric types when converting to text.
numeric_types
is defined in petl.compat.The following customization (via monkey-patching, yes, I know) does not work, however:
because in petl/util/vis.py it is accessed like this:
and this module gets loaded as a side-effect of importing petl.
Changing it to this - everywhere it is used - would fix the issue:
The text was updated successfully, but these errors were encountered: