Skip to content

AttributeError when using batch_merge #1540

@Demsli

Description

@Demsli

Describe the bug
Getting Attribute error when trying to use the new feature batch_merge inside a created worksheet. Error text: AttributeError: 'Worksheet' object has no attribute 'batch_merge'

To Reproduce
Steps to reproduce the behavior:

  1. Create a list of dictionaries (ex, name merge_request) with keys 'range' and 'mergeType'
  2. Pass it to the worksheet variable: worksheet.batch_merge(merge_request)
  3. Recieve AttributeError

Expected behavior
All of my selected ranges to be merged with one call.

Code example*
https://pastebin.com/jZLTrZwP

Environment info:

  • Operating System [e.g. Linux, Windows, macOS]: Windows
  • Python version: 3.11.9
  • gspread version: 6.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions