Skip to content

Commit

Permalink
Created an add_validation method. [Issue burnash#1420]
Browse files Browse the repository at this point in the history
  • Loading branch information
muddi900 committed Mar 15, 2024
1 parent 719619f commit 9a6496c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gspread/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -3199,3 +3199,12 @@ def cut_range(
}

return self.client.batch_update(self.spreadsheet_id, body)

def add_validation(
self, range: str, validation_type: Any, values: list[list[Any]]
) -> Any:
grid = a1_range_to_grid_range(range, self.id)

body = {
"requests": [{}],
}

0 comments on commit 9a6496c

Please sign in to comment.