urschrei / pyzotero

Pyzotero: a Python client for the Zotero API
https://pyzotero.readthedocs.org
Other
908 stars 99 forks source link

Fix arg passing with template function decorator #106

Closed davidlesieur closed 5 years ago

davidlesieur commented 5 years ago

Calls to Zotero.item_type_fields() and Zotero.item_creator_types() cause the following error:

TypeError: wrapped_f() takes 1 positional argument but 2 were given

The tcache decorator fails to pass the required itemtype argument.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 44.595% when pulling 8717f6fd60ac3c3d6dc35ba0f70cce69cf19bc72 on davidlesieur:tcache-args into 7472594859837794f80263333a96194c949caec3 on urschrei:master.

urschrei commented 5 years ago

Ah, good catch. Thank you! Will push an update to PyPI this evening.