python-tableformatter / tableformatter

Tabular data formatter allowing printing from both arbitrary Iterables of Iterables or Iterables of objects via introspection
https://pypi.org/project/tableformatter/
MIT License
19 stars 3 forks source link

Python 3.4 support is currently broken #1

Closed tleonhardt closed 6 years ago

tleonhardt commented 6 years ago

When I attempt to run either example using Python 3.4, I get what is fundamentally a typing error:

18:09 $ ./simple_object.py
Traceback (most recent call last):
  File "./simple_object.py", line 3, in <module>
    from TableFormatter import generate_table, FancyGrid, SparseGrid, Column
  File "/Users/toddleonhardt/src/tableformatter/TableFormatter.py", line 552, in <module>
    def generate_table(rows, columns: Collection[Union[str, Tuple[str, dict]]]=None, grid_style=AlternatingRowGrid, transpose=False):
  File "/Users/toddleonhardt/anaconda/envs/py34/lib/python3.4/site-packages/typing.py", line 970, in __getitem__
    (len(self.__parameters__), len(params)))
TypeError: Cannot change parameter count from 2 to 1

Things work fine in either Python 3.5 or 3.6.

Tested on macOS with everything installed from conda package manager.