Skip to content

Commit 10760e7

Browse files
updated
1 parent 0347645 commit 10760e7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

py/selenium/webdriver/common/bidi/script.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import math
2020
from dataclasses import dataclass
2121
from functools import singledispatchmethod
22-
from typing import Any, Optional, Union
22+
from typing import Any, Optional, List, Tuple
2323

2424
from selenium.common.exceptions import WebDriverException
2525
from selenium.webdriver.common.bidi.common import command_builder
@@ -255,7 +255,11 @@ def _(self, value: set):
255255
return {"type": "set", "value": [self.script.convert_to_local_value(item) for item in value]}
256256

257257
@_type.register
258-
def _(self, value: Union[list, tuple]):
258+
def _(self, value: List):
259+
return {"type": "array", "value": [self.script.convert_to_local_value(item) for item in value]}
260+
261+
@_type.register
262+
def _(self, value: Tuple):
259263
return {"type": "array", "value": [self.script.convert_to_local_value(item) for item in value]}
260264

261265
@_type.register

0 commit comments

Comments
 (0)