ianlini / flatten-dict

A flexible utility for flattening and unflattening dict-like objects in Python.
MIT License
176 stars 36 forks source link

max_flatten_depth #39

Closed szalik-m closed 3 years ago

szalik-m commented 3 years ago

I'm not able to use max_flatten_depth, this error occurred:

Traceback (most recent call last):
  File "test.py", line 39, in <module>
    pprint(flatten(normal_dict, reducer='path', max_flatten_depth=2))
TypeError: flatten() got an unexpected keyword argument 'max_flatten_depth'

Tested on python 2.7 and 3.8 - the same behaviour. Installed with

pip install flatten-dict
ianlini commented 3 years ago

It's not released yet. Try installing from the current master branch.

pip install https://github.com/ianlini/flatten-dict/archive/40974bfb0f01b09edc1b8181801f86a183326557.zip
szalik-m commented 3 years ago

That was it, thank you ;)