Skip to content

Commit

Permalink
conditon type input uses enum from utils
Browse files Browse the repository at this point in the history
  • Loading branch information
muddi900 committed Mar 15, 2024
1 parent 487a25e commit bc35b18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gspread/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
T,
ValueInputOption,
ValueRenderOption,
ValidationConditionType,
a1_range_to_grid_range,
a1_to_rowcol,
absolute_range_name,
Expand Down Expand Up @@ -3203,7 +3204,7 @@ def cut_range(
def add_validation(
self,
range: str,
validation_type: Any,
condition_type: ValidationConditionType,
*values,
**kwargs,
) -> Any:
Expand All @@ -3221,7 +3222,7 @@ def add_validation(
"range": grid,
"rule": {
"condition": {
"type": validation_type,
"type": condition_type,
"values": [
{"userEnteredValue": value} for value in values
],
Expand Down

0 comments on commit bc35b18

Please sign in to comment.