From 756443d6c81c0c769476011b902602665c0d61e1 Mon Sep 17 00:00:00 2001 From: pallavigotwork Date: Wed, 28 May 2025 23:53:10 -0700 Subject: [PATCH 1/2] fixed error in selenium/webdriver/common/bidi/common.py:19 --- py/selenium/webdriver/common/bidi/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/selenium/webdriver/common/bidi/common.py b/py/selenium/webdriver/common/bidi/common.py index a56ba2e5a9894..e50fe8ef55598 100644 --- a/py/selenium/webdriver/common/bidi/common.py +++ b/py/selenium/webdriver/common/bidi/common.py @@ -14,9 +14,9 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +from typing import Generator, Optional - -def command_builder(method: str, params: dict = None) -> dict: +def command_builder(method: str, params: Optional[dict] = None) -> Generator[dict, dict, dict]: """Build a command iterator to send to the BiDi protocol. Parameters: From 9cbf477f5deb6b24f3f809981dd22174f4792c8e Mon Sep 17 00:00:00 2001 From: pallavigotwork Date: Thu, 29 May 2025 00:45:23 -0700 Subject: [PATCH 2/2] modified --- py/selenium/webdriver/common/bidi/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py/selenium/webdriver/common/bidi/common.py b/py/selenium/webdriver/common/bidi/common.py index e50fe8ef55598..4cfe7f8fbc16e 100644 --- a/py/selenium/webdriver/common/bidi/common.py +++ b/py/selenium/webdriver/common/bidi/common.py @@ -16,6 +16,7 @@ # under the License. from typing import Generator, Optional + def command_builder(method: str, params: Optional[dict] = None) -> Generator[dict, dict, dict]: """Build a command iterator to send to the BiDi protocol.