File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -684,7 +684,7 @@ def computer(
684
684
self ,
685
685
* ,
686
686
action : Literal ["scroll" ],
687
- coordinates : List [int ],
687
+ coordinates : Optional [ List [int ]] = None ,
688
688
delta_x : Optional [float ] = 0 ,
689
689
delta_y : Optional [float ] = 0 ,
690
690
hold_keys : Optional [List [str ]] = None ,
@@ -992,7 +992,7 @@ async def computer(
992
992
self ,
993
993
* ,
994
994
action : Literal ["scroll" ],
995
- coordinates : List [int ],
995
+ coordinates : Optional [ List [int ]] = None ,
996
996
delta_x : Optional [float ] = 0 ,
997
997
delta_y : Optional [float ] = 0 ,
998
998
hold_keys : Optional [List [str ]] = None ,
Original file line number Diff line number Diff line change @@ -75,8 +75,6 @@ def __call__(self, **kwargs: Any) -> Any:
75
75
hold_keys = params .hold_keys ,
76
76
)
77
77
elif params .action == "scroll" :
78
- if not params .coordinates :
79
- raise ValueError ("coordinates is required for scroll action" )
80
78
return self ._instance .computer (
81
79
action = params .action ,
82
80
coordinates = params .coordinates ,
You can’t perform that action at this time.
0 commit comments