Skip to content

Commit

Permalink
Added a docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
muddi900 committed Aug 1, 2024
1 parent 0040e69 commit e53e362
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gspread/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2611,6 +2611,20 @@ def batch_merge(
merges: List[Dict[Literal["range", "mergeType"], Union[str | MergeType]]],
merge_type: MergeType = MergeType.all,
) -> Any:
"""Merge multiple ranges at the same time.
:param merges: list of dictionaries with the ranges(is A1-notation), and
an optional ``MergeType`` field.
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``.
:type merge_type: ``MergeType``
:returns: The body of the request repsonse.
:rtype: dict
"""

requests = [
{
"merges": {
Expand Down

0 comments on commit e53e362

Please sign in to comment.