Skip to content

Commit

Permalink
allow get_values to emulate get
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Oct 31, 2023
1 parent da058b8 commit 92a4f7e
Show file tree
Hide file tree
Showing 3 changed files with 703 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gspread/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,10 @@ def get_values(self, *args, **kwargs) -> List[List[T]]:
(legacy method)
"""
return self.get(
*args, pad_values=True, return_type=GridRangeType.ListOfLists, **kwargs
*args,
pad_values=kwargs.pop("pad_values", True),
return_type=kwargs.pop("return_type", GridRangeType.ListOfLists),
**kwargs,
)

def get_all_values(self, *args, **kwargs) -> ValueRange:
Expand Down
Loading

0 comments on commit 92a4f7e

Please sign in to comment.