Pyzotero: a Python client for the Zotero API pyzotero.readthedocs.io
zotero

Remove redundant dict() calls

+2 -2
+1 -1
src/pyzotero/_client.py
··· 1060 1060 f"/{self.library_type}/{self.library_id}/items", 1061 1061 ), 1062 1062 content=json.dumps(to_send), 1063 - headers=dict(headers), 1063 + headers=headers, 1064 1064 ) 1065 1065 self.request = req 1066 1066 try:
+1 -1
src/pyzotero/_upload.py
··· 209 209 f"/{self.zinstance.library_type}/{self.zinstance.library_id}/items/{reg_key}/file", 210 210 ), 211 211 data=reg_data, 212 - headers=dict(reg_headers), 212 + headers=reg_headers, 213 213 ) 214 214 try: 215 215 upload_reg.raise_for_status()