From c9e33919b193c38870b8d08f13bc928f73c0b532 Mon Sep 17 00:00:00 2001 From: Corey Goldberg <1113081+cgoldberg@users.noreply.github.com> Date: Sun, 10 Aug 2025 21:07:37 -0400 Subject: [PATCH] [py] Use native dict for type annotation --- py/selenium/webdriver/common/bidi/session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/selenium/webdriver/common/bidi/session.py b/py/selenium/webdriver/common/bidi/session.py index c167d4eee0137..32eab4fd74a9e 100644 --- a/py/selenium/webdriver/common/bidi/session.py +++ b/py/selenium/webdriver/common/bidi/session.py @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -from typing import Dict, Optional +from typing import Optional from selenium.webdriver.common.bidi.common import command_builder @@ -77,7 +77,7 @@ def __init__( self.file = file self.prompt = prompt - def to_dict(self) -> Dict[str, str]: + def to_dict(self) -> dict[str, str]: """Convert the UserPromptHandler to a dictionary for BiDi protocol. Returns: