dwollav2 TypeError: request() got an unexpected keyword argument 'file' on document upload (1.5.0)

Uploading a document with dwollav2 1.5.0 failed with TypeError: request() got an unexpected keyword argument 'file' raised from inside token.py's post(). A community member traced it to params being passed positionally instead of as the named params kwarg, so requests received them twice. A maintainer confirmed the regression was introduced in v1.4.0.

Regression in v1.4.0/v1.5.0: post()/get() in token.py passed params positionally, breaking any call with extra kwargs like document upload. Workaround confirmed by the maintainer: pin to v1.3.0 in production. The fix shipped and the maintainer confirmed anything >= 1.6.0 has it — upgrade to 1.6.0+. Source: https://github.com/Dwolla/dwolla-v2-python/issues/30