dgilman/gspread_asyncio

TypeError: get_values got unexpected keyword arguments: ['range_name']

bryzgaloff opened this issue · 2 comments

burnash's gspread somewhy restricts the kwargs that can be used for worksheet.get_values: https://github.com/burnash/gspread/blob/master/gspread/worksheet.py#L248-L253

Your library makes a call providing range_name as a kwarg: https://github.com/dgilman/gspread_asyncio/blob/master/gspread_asyncio/__init__.py#L1208

This leads to the following error:

  File "…/site-packages/gspread/utils.py", line 588, in wrapper
    raise TypeError(err % (f.__name__, list(unexpected_kwargs)))
TypeError: get_values got unexpected keyword arguments: ['range_name']

Versions: gspread-asyncio==1.5.0 gspread=4.0.1

Embarassing! I apologize for this. I will get CI working again on this repo and do a release tonight.

I recommend you to check other cases also. Probably range_name is expected to be non-kwarg in multiple methods.

Thank you for a quick fix.