Skip to content

Commit

Permalink
fixed the values.
Browse files Browse the repository at this point in the history
  • Loading branch information
muddi900 committed Aug 2, 2024
1 parent e53e362 commit 3e875da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gspread/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,7 @@ def unmerge_cells(self, name: str) -> JSONResponse:
def batch_merge(
self,
merges: List[Dict[Literal["range", "mergeType"], Union[str | MergeType]]],
merge_type: MergeType = MergeType.all,
merge_type: MergeType = MergeType.merge_all,
) -> Any:
"""Merge multiple ranges at the same time.
Expand All @@ -2618,7 +2618,7 @@ def batch_merge(
See `MergeType`_ in the Sheets API reference.
:type merges: List[Dict[Literal["range", "mergeType"], Union[str | MergeType]]]
:params merge_type: (optional) default ``MergeType`` for all merges missing the merges.
defaults to ``MergeType.all``.
defaults to ``MergeType.merge_row``.
:type merge_type: ``MergeType``
:returns: The body of the request repsonse.
Expand All @@ -2627,7 +2627,7 @@ def batch_merge(

requests = [
{
"merges": {
"mergeCells": {
"range": a1_range_to_grid_range(i["range"], self.id),
"mergeType": i.get("mergeType", merge_type),
}
Expand Down

0 comments on commit 3e875da

Please sign in to comment.